[R] Reading one column .csv file
darnold
dwarnold45 at suddenlink.net
Wed Aug 15 19:27:54 CEST 2012
My friend sent an Excel file:
http://msemac.redwoods.edu/~darnold/temp/cyu01_iqscores.xls
http://msemac.redwoods.edu/~darnold/temp/cyu01_iqscores.xls
I opened it in Excel, saved is as cyu01_iqscores.csv, then imported it into
R with:
iqscores=read.csv('cyu01_iqscores.csv',header=TRUE)
The result was:
> head(iqscores)
IQ.Scores X
1 145 NA
2 101 NA
3 123 NA
4 106 NA
5 117 NA
6 102 NA
Now, I know I can cure this with:
iqscores=iqscores[,1]
But I am wondering about this weird behavior.
Suggestions?
David
--
View this message in context: http://r.789695.n4.nabble.com/Reading-one-column-csv-file-tp4640396.html
Sent from the R help mailing list archive at Nabble.com.
More information about the R-help
mailing list