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: [email protected]
> To: [email protected]
> 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 Im trying:
>
> train = read.csv("trainingset.txt",check.names=FALSE)
> test = read.csv("testset.txt",check.names=FALSE)
> many thanks,
> Nancy
>
> _________________________________________________________________
>
_________________________________________________________________
[[alternative HTML version deleted]]
______________________________________________
[email protected] 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.