[R] array of matrices resp. dataFrames
ligges at statistik.uni-dortmund.de
Fri May 3 12:14:26 CEST 2002
Jan Malte Wiener wrote:
> from a rather complex data set (a huge matrix) i want to extract
> submatrices (of different no. of rows). i need to store those
> submatrices (resp. data.frames) in an array (at least something data
> structure i can address via an index to get the submatrices).
> unfortunately i have no idea how to accomplish that.
> thanks for any suggestions ,
You should use a list:
X <- matrix(1:100, 10)
Y <- matrix(1:25, 5)
L <- list(X, Y)
L[] # get the second list element (Y)
r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !) To: r-help-request at stat.math.ethz.ch
More information about the R-help