[R] read dataset in R language.

Nancy Adam nancyadam84 at hotmail.com
Tue Dec 15 22:23:54 CET 2009



Hi all,Thanks for your reply. Sorry I did not send sufficient information about my problem…I attach the two datasets that I’m trying to read and these are my attempts to read them:1)#train <- read.table("trainingset.txt", header=TRUE, sep=";" ,fill=TRUE) #test <- read.table("testset.txt", header=TRUE, sep=";" , fill=TRUE)its error message is:
 “ undefined columns selected”2)train <- scan("trainingset.txt",  sep=";" ,fill=TRUE) test <- scan("testset.txt", sep=";" , fill=TRUE)
 
its error message is:
“  'names' attribute [172] must be the same length as the vector [152]”
 
many thanks,
Nancy 		 	   		  
_________________________________________________________________

-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: trainingset.txt
URL: <https://stat.ethz.ch/pipermail/r-help/attachments/20091215/c37277a2/attachment-0004.txt>
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: testset.txt
URL: <https://stat.ethz.ch/pipermail/r-help/attachments/20091215/c37277a2/attachment-0005.txt>


More information about the R-help mailing list