On Tue, Jun 4, 2013 at 10:33 AM, Sparks, John James <jspa...@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: resList[["Advertising2007"]] Sarah -- Sarah Goslee http://www.functionaldiversity.org ______________________________________________ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.