[R] Matrix of data frames

Gabor Grothendieck ggrothendieck at gmail.com
Thu Jun 5 22:47:05 CEST 2008


On Thu, Jun 5, 2008 at 4:22 PM,  <tolga.i.uzuner at jpmorgan.com> wrote:
> Dear R-Users,
>
> Is there a way to create a matrix of data frames in R ?


Using builtin BOD and women:

> m <- matrix(list(BOD, women, women, BOD), 2)
> m[[1,2]] # women
   height weight
1      58    115
2      59    117
3      60    120
4      61    123
5      62    126
6      63    129
7      64    132
8      65    135
9      66    139
10     67    142
11     68    146
12     69    150
13     70    154
14     71    159
15     72    164



More information about the R-help mailing list