Re: [R] Creating an array of lists

2008-08-07 Thread Gang Chen
Yes, both array of lists and list of lists work well as desired. Thanks a lot! Gang On Thu, Aug 7, 2008 at 4:05 PM, Patrick Burns <[EMAIL PROTECTED]> wrote: > myListArray <- array(list(NULL), c(3,2)) > myListArray[[1,2]] <- list(letters, 1:4) > > Patrick Burns > [EMAIL PROTECTED] > +44 (0)20 8525

Re: [R] Creating an array of lists

2008-08-07 Thread Patrick Burns
myListArray <- array(list(NULL), c(3,2)) myListArray[[1,2]] <- list(letters, 1:4) Patrick Burns [EMAIL PROTECTED] +44 (0)20 8525 0696 http://www.burns-stat.com (home of S Poetry and "A Guide for the Unwilling S User") Gang Chen wrote: Hi, I want to store some number of outputs from running a b

Re: [R] Creating an array of lists

2008-08-07 Thread Dan Davison
Gang Chen-4 wrote: > > Hi, > > I want to store some number of outputs from running a bunch of > analyses such as lm() into an array. I know how to do this with a > one-dimensional array (vector) by creating > > myArray <- vector(mode='list', length=10) > Note that in R terminology, 'myArray'

[R] Creating an array of lists

2008-08-07 Thread Gang Chen
Hi, I want to store some number of outputs from running a bunch of analyses such as lm() into an array. I know how to do this with a one-dimensional array (vector) by creating myArray <- vector(mode='list', length=10) and storing each lm() result into a component of myArray. My question is, how