Hi Nancy,

 

testset.txt is using ";" as a field separator instead of the default ",", thus, 
you need to pass this information to R:

 

tt = read.csv("testset.txt", sep=";")

 

Hope this helps,

Ivan
 
> From: nancyada...@hotmail.com
> To: r-help@r-project.org
> Date: Wed, 16 Dec 2009 02:34:25 +0200
> Subject: [R] Read dataset in R language.
> 
> 
> Hi all,
> Thanks for the explanation
> I got other datasets that are already used with others but I got the same 
> errors:
> “undefined columns selected”
> I attach the datasets with this email and this is the command I’m trying:
> 
> train = read.csv("trainingset.txt",check.names=FALSE)
> test = read.csv("testset.txt",check.names=FALSE)
> many thanks,
> Nancy
> 
> _________________________________________________________________
> 
                                          
_________________________________________________________________


        [[alternative HTML version deleted]]

______________________________________________
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.

Reply via email to