[R] R commander.

joris meys jorismeys at gmail.com
Mon Oct 12 18:32:53 CEST 2009


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 . <mykhwab at 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 at 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.
>
>




More information about the R-help mailing list