[R] formatting a list

Tomas Vaisar tvaisar at u.washington.edu
Sat Oct 20 23:08:22 CEST 2007


I am new to R and need to read in a file with 19 columns and 7000 rows
and make it into a list of 7000 lists with 19 items each.  For a
simpler case of 10 by 10 table I used x <-scan("file",
list(0,0,0,0,0,0,0,0,0,0)), perhaps clumsy, but it did the job.
However with the large 19x7000 (which needs to be transposed) I am not
sure how to go about it.

Coudl somebody suggest a way?



More information about the R-help mailing list