[R] extract all dataframes from list

Gerrit Eichner Gerrit.Eichner at math.uni-giessen.de
Wed Oct 7 08:43:57 CEST 2015


Hello, Maicel,

if you only want to extract info from those data frames, maybe it is 
enough to attach the list to the search path using attach (and afterwards 
detach()); see ?attach. Otherwise the online help page of assign() might 
be a starting point for you.

  Hth  --  Gerrit

> Hi
>
> Or basically you can use for cycle. This can be as effective as lapply 
> and if you plan to do some operations on your data frames maybe more 
> manageable.
>
> Cheers
> Petr
>
>> -----Original Message-----
>> From: R-help [mailto:r-help-bounces at r-project.org] On Behalf Of maicel
>> Sent: Tuesday, October 06, 2015 12:50 PM
>> To: r-help at r-project.org
>> Subject: [R] extract all dataframes from list
>>
>> Hello List, I have list of named dataframe. How can I extract all
>> dataframes from this list? The dataframe names should be the same of
>> the original list.
>> May I use the lapply function?
>>
>> Thanks for your help. Best regards,
>> Maicel Monzon, MD
>> National Center of Clinical Trials
>> Havana, Cuba
>>
> ....
> ______________________________________________
> R-help at r-project.org mailing list -- To UNSUBSCRIBE and more, see
> 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.



More information about the R-help mailing list