[R] re ad.table problem

Schleuh Arnaud.Schloesing at univ-lille2.fr
Thu Jul 10 12:00:39 CEST 2008


did you remark you obtain the half of rows (636615*2=1273230) ; maybe the
columns aren't good sliced

phoebe kong wrote:
> 
> 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 in advanced,
> 
> 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.
> 
> 

-- 
View this message in context: http://www.nabble.com/read.table-problem-tp18370284p18379571.html
Sent from the R help mailing list archive at Nabble.com.



More information about the R-help mailing list