Skip to content
Prev 69828 / 398525 Next

how to use list index to get vector

If you have the data in files in such format, with one entry per line, you
can do something like:

dat <- matrix(scan("fileWithData", sep=":"), ncol=2, byrow=TRUE)

Then the first column of dat would be the indices, and the second column
would be the values.

Andy