[R] big data file geting truncated
Peter Dalgaard BSA
p.dalgaard at biostat.ku.dk
Wed Aug 13 09:26:31 CEST 2003
Dibakar Ray <dibakar at hub.nic.in> writes:
> I am very new to R. I was trying to load some publicly available Expression
> data in to R.
> I used the following commands
> mydata<-read.table("dataALLAMLtrain.txt", header=TRUE, sep
> ="\t",row.names=NULL)
> It reads data without any error
> Now if I use
> edit(mydata)
> It shows only 3916 entries, whereas the actual file contains 7129 entries)
...
> So it seems R is truncating the data. How can I load the complete file?
First isolate the source. edit() could have a bug, so what is
dim(mydata) ? Does the input file really have 7130 lines?
length(readLines("foobar.txt")) should tell you if you don't have "wc"
on your system.
--
O__ ---- Peter Dalgaard Blegdamsvej 3
c/ /'_ --- Dept. of Biostatistics 2200 Cph. N
(*) \(*) -- University of Copenhagen Denmark Ph: (+45) 35327918
~~~~~~~~~~ - (p.dalgaard at biostat.ku.dk) FAX: (+45) 35327907
More information about the R-help
mailing list