[R] dataframe of dataframes?

Jeff Newmiller jdnewmil at dcn.davis.ca.us
Tue Sep 14 08:18:07 CEST 2010


rajeshj at cse.iitm.ac.in wrote:
> Hi,
>
> I create several dataframes in a nested loop and would like to maintain them in a matrix form with each dataframe represented by the row and the column. How can I do this?
>   
You can't, at least as you describe it.

However, you can add a column for "row ID" and a column for "column ID" 
to each of your result data frames and "rbind" them together.

It is also possible to create lists of lists... but I believe the single 
augmented dataframe will be way more useful in the long run.



More information about the R-help mailing list