[R] Creating an array of lists
Gang Chen
gangchen6 at gmail.com
Thu Aug 7 18:16:59 CEST 2008
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 can do this for a multiple dimensional array? It
seems array() does not have such a 'mode' option as in vector(). Any
alternatives?
Thanks in advance,
Gang
More information about the R-help
mailing list