[R] Entering data into a multi-way array?

Victoria_Stuart 1 at VictoriasJourney.com
Sun Oct 9 02:17:44 CEST 2011


One last comment: add sep="," to the read.csv assignment, to avoid "Error in
scan(file ... : scan() expected 'a real', got" -type errors:

x<-matrix(scan("/home/victoria/R/5.3.2.2.csv",n=5*12,sep=","),5,12,byrow=TRUE)



--
View this message in context: http://r.789695.n4.nabble.com/Entering-data-into-a-multi-way-array-tp3862054p3886346.html
Sent from the R help mailing list archive at Nabble.com.



More information about the R-help mailing list