another choice is: x <- scan('temp.txt', what=c(rep(list(0), 19)))
On 10/20/07, Tomas Vaisar <[EMAIL PROTECTED]> wrote: > Hi, > > 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? > > Thanks, > > Tomas > > ______________________________________________ > R-help@r-project.org mailing list > https://stat.ethz.ch/mailman/listinfo/r-help > PLEASE do read the posting guide http://www.R-project.org/posting-guide.html > and provide commented, minimal, self-contained, reproducible code. > -- Jim Holtman Cincinnati, OH +1 513 646 9390 What is the problem you are trying to solve? ______________________________________________ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.