You seem to have gotten an extraneous list item called "Chromosome" to
which an empty string has been assigned. What happens if you issue
this command:
ann2 <- data.frame( Name=ann$Name, Position=ann$Position,
Chr.num=factor(ann$Chr.num) )
(I took the liberty of making Chr.num into a factor.) And then print
out smaller segments of ann2 (since what you have would take many
hundreds of pages.
ann2[ , 1:60]
--
David
On Oct 12, 2009, at 2:29 AM, Ilyas . 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.html
and provide commented, minimal, self-contained, reproducible code.
David Winsemius, MD
Heritage Laboratories
West Hartford, CT
______________________________________________
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.