[R] read.table conversion question

Myriam Abramson mabramso at gmu.edu
Thu Oct 10 04:31:54 CEST 2002


I would like to read data read with read.table row by row into a
c() vector. 

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
[1] 1

[1] -1

Sorry if that's well known but I can't still figure it out. 

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

More information about the R-help mailing list