
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: nancyadam84@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]]


