[R] Refer to Data Frame Name Inside a List

Sarah Goslee sarah.goslee at gmail.com
Tue Jun 4 17:02:19 CEST 2013

On Tue, Jun 4, 2013 at 10:33 AM, Sparks, John James <jspark4 at uic.edu> wrote:
> Dear R Helpers,
> I have a fairly complicated list of data frames.  To give you an idea of
> the structure, the top of the str output is shown below.
> How do I refer to the data.frame name for each data.frame in the list?
> That is, how can I pull the terms Advertising2007, AirFreightDelivery2007,
> Apparel2007 etc. out of the list?  I need them to keep track of
> correlations that I am doing inside each data frame of the list.

The same way you'd access any named list component:


Sarah Goslee

More information about the R-help mailing list