Re: [R] formatting a list

2007-10-26 Thread Tomas Vaisar
i386, mingw32 > status > major 2 > minor 6.0 > year 2007 > month 10 > day03 > svn rev43063 > language R > version.string R version 2.6.0 (2007-10-03) >> > > > Chuck > > On Mon, 22 O

Re: [R] formatting a list

2007-10-22 Thread Tomas Vaisar
> you mention. > > I am using > >> version >_ > platform i386-pc-mingw32 > arch i386 > os mingw32 > system i386, mingw32 > status > major 2 > minor 6.0 > year 2007 > month

Re: [R] formatting a list

2007-10-22 Thread Tomas Vaisar
ng.r.general > > the above article was the firt reply to your original query. I am > puzzled as to why you did not simply implement one of the three > methods shown there. > > Chuck > > On Mon, 22 Oct 2007, Tomas Vaisar wrote: > >> Hi Jim, >> >> I re

Re: [R] formatting a list

2007-10-22 Thread Tomas Vaisar
rmat that the 'scan' approach > should provide. I was just confused when you said that you were going > to have to transpose it, write it and then read it back in for some > reason. I understand that Excel can not handle 7000 columns, but was > wondering where that came into

Re: [R] formatting a list

2007-10-21 Thread Tomas Vaisar
tput of the 'scan' and do: > > x.matrix <- do.call('rbind', x) # gives 7000 x 19 matrix. > > So I am still not sure exactly what your input is and what you want to > do with it. > > On 10/21/07, Tomas Vaisar <[EMAIL PROTECTED]> wrote: > >

Re: [R] formatting a list

2007-10-21 Thread Tomas Vaisar
ad it back in, but I would think that there might be a way in R to do both. Would you know about the way? Tomas jim holtman wrote: > another choice is: > > x <- scan('temp.txt', what=c(rep(list(0), 19))) > > On 10/20/07, Tomas Vaisar <[EMAIL PROTECTED]> wrote: >

[R] formatting a list

2007-10-20 Thread Tomas Vaisar
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 n