[R] Read.table - Less rows than original data

From: phoebe kong <sityeekong_at_gmail.com>
Date: Wed, 09 Jul 2008 12:16:35 -0700


Dear all,

I have problem when reading a table into R. The total row of read in table has is much less than the original saved table.

I built a 1,273,230 by 6 data set named "mydata2", it was saved in the following command,

write.table(mydata2, "mydata2.txt", row.name=F,col.name=T,quote=F,sep="\t")

The next day I read in above saved text file into R,

temp<-read.table("mydata2.txt",header=T,sep="\t",na.strings="NA")

However, the dimension of "temp" is 636,615 X 6.

Do yo know why?

Thanks for your attention.

Sityee

        [[alternative HTML version deleted]]



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. Received on Wed 09 Jul 2008 - 19:24:24 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Wed 09 Jul 2008 - 21:32:08 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.

list of date sections of archive