Skip to content
Prev 24078 / 398502 Next

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.