[R] Read dataset in R language.

Peter Ehlers ehlers at ucalgary.ca
Wed Dec 16 04:59:15 CET 2009


Nancy,

You really should read the help page for read.csv.
Try this

test <- read.csv2("testset.txt")

Note the '2'.

  -Peter

Nancy Adam wrote:
> 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
>   		 	   		  
> _________________________________________________________________
> 
> 
> 
> ------------------------------------------------------------------------
> 
> ______________________________________________
> 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.

-- 
Peter Ehlers
University of Calgary
403.202.3921




More information about the R-help mailing list