read.table conversion question
Hi!
I would like to read data read with read.table row by row into a
c() vector.
data<-read.table("test",header=FALSE)
for (i in 1:length(data[[1]])) {
temp <- ??
do something with temp
}
data[1,] gives me
V1 V2 V3 V4 V5
1 1 -1 -1 -1 0.33
c[temp[1],temp[2]) gives me
$V1
[1] 1
$V2
[1] -1
Sorry if that's well known but I can't still figure it out.
myriam -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html Send "info", "help", or "[un]subscribe" (in the "body", not the subject !) To: r-help-request at stat.math.ethz.ch _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._