Re: [R] R commander.

2009-10-14 Thread Ilyas .
thank u so much for ur help,,i have tried it before,,and succeded to do
so,,the problem is that, in the next stage of the package i am facing a
problem which i dont know how to fix,,,i am useing cnvpack (
http://www.meb.ki.se/~yudpaw/) and in the following command i get an
error,,which is..


 cnvr-setreg(out,anno.list= myann,pheno.data= mypheno,high.conf= NA,LIM=
2,method= COVER, cnv.abnormality= both)
Error in setreg(out, anno.list = myann, pheno.data = mypheno, high.conf =
NA,  :
  NAs in foreign function call (arg 4)

i then manipulate my data (out) and made high.conf=0, then it shows me
this error...

 cnvr-setreg(out,anno.list= myann,pheno.data= mypheno,high.conf=0,LIM=
2,method= COVER, cnv.abnormality= both)
Error in st[ii]:en[ii] : NA/NaN argument



Ilyas


On Tue, Oct 13, 2009 at 1:32 AM, joris meys jorism...@gmail.com wrote:

 As the error says, you have different row numbers in your variables.
 The variable $Chromosome has no values.

 try :
 ann - data.frame( ann [-3] )

 Cheers
 Joris

 On Mon, Oct 12, 2009 at 8:29 AM, Ilyas . mykh...@gmail.com wrote:
  i have two RData files,,i want to print them to check the format of the
  tables in these files,,,i can load both the files and can read it as well
 
  load('ann.RData')
  str(ann)
  List of 4
   $ Name  : chr [1:561466] rs3094315 rs12562034 rs3934834
  rs9442372 ...
   $ Position  : int [1:561466] 742429 758311 995669 1008567 1011278
 1011521
  1020428 1021403 1038818 1039813 ...
   $ Chromosome: chr(0)
   $ Chr.num   : num [1:561466] 1 1 1 1 1 1 1 1 1 1 ...
 
  but when i try to display all the table by using the R commander.i have
 got
  the display of 'pheno.RData' file,,but the other file 'ann.RData' show me
 an
  error i.e.
 
  ann - as.data.frame(ann)
  Error in data.frame(Name = c(rs3094315, rs12562034, rs3934834,
  rs9442372,  :
   arguments imply differing number of rows: 561466, 0
 
 
 
  i am sending you both files,,,hope u will help me solve this problm
 
 
  Ilyas
 
   __
  R-help@r-project.org mailing list
  https://stat.ethz.ch/mailman/listinfo/r-help
  PLEASE do read the posting guide
 http://www.R-project.org/posting-guide.htmlhttp://www.r-project.org/posting-guide.html
  and provide commented, minimal, self-contained, reproducible code.
 
 


[[alternative HTML version deleted]]

__
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.


[R] R commander.

2009-10-12 Thread Ilyas .
i have two RData files,,i want to print them to check the format of the
tables in these files,,,i can load both the files and can read it as well

 load('ann.RData')
 str(ann)
List of 4
 $ Name  : chr [1:561466] rs3094315 rs12562034 rs3934834
rs9442372 ...
 $ Position  : int [1:561466] 742429 758311 995669 1008567 1011278 1011521
1020428 1021403 1038818 1039813 ...
 $ Chromosome: chr(0)
 $ Chr.num   : num [1:561466] 1 1 1 1 1 1 1 1 1 1 ...

but when i try to display all the table by using the R commander.i have got
the display of 'pheno.RData' file,,but the other file 'ann.RData' show me an
error i.e.

 ann - as.data.frame(ann)
Error in data.frame(Name = c(rs3094315, rs12562034, rs3934834,
rs9442372,  :
  arguments imply differing number of rows: 561466, 0



i am sending you both files,,,hope u will help me solve this problm


Ilyas
__
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.


Re: [R] convert RData to txt

2009-10-06 Thread Ilyas .
thank you for your reply,,
i tried your commands but its not working,,i have attached the RData
file,,which i want to convert into txt..

Ilyas
On Mon, Oct 5, 2009 at 9:27 PM, Henrique Dallazuanna www...@gmail.comwrote:

 You can try something about like this:

 lapply(ls(), function(obj)cat(\n, obj, -,
 paste(deparse(get(obj)), collapse = \n), file = 'RData.txt', append
 = TRUE))
 source('RData.txt')


 On Mon, Oct 5, 2009 at 4:00 AM,  mykh...@gmail.com wrote:
  hello all,
  will you plz tell me how can i convert RData files to txt,,,
 
  __
  R-help@r-project.org mailing list
  https://stat.ethz.ch/mailman/listinfo/r-help
  PLEASE do read the posting guide
 http://www.R-project.org/posting-guide.htmlhttp://www.r-project.org/posting-guide.html
  and provide commented, minimal, self-contained, reproducible code.
 



 --
 Henrique Dallazuanna
 Curitiba-Paraná-Brasil
 25° 25' 40 S 49° 16' 22 O

__
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.