[R] indexing data.frames

graham lawrence forporphyry at hotmail.com
Sun Mar 3 20:43:46 CET 2002

Dear R-help,

I have a series of data.frames (i1,i2,...,in) all containing the same number 
of items, but dissimilar content.  I would like to instal them in another 
data.frame, say index, so that I can access their items with index[i,j].

No matter how I try to set index up, its subframes cannot be indexed, 
because they all have the row number of 1.  What am I doing wrong? (I get 
the same result with lists, a data.frame of lists, or a list of data.frames)

Alternatively, does R contain an equivalent to the INDIRECT function found 
in spreadsheets, so that instead of doing, say, edit(i6), I could get 
instead edit(the vector named by the content of i6)?

Thank you in advance for your help
graham lawrence


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 mailing list