[R] dataframes to a list

Matthias Kohl Matthias.Kohl at stamats.de
Wed May 14 12:58:51 CEST 2008


Does

mget(paste("data", 1:50, sep = ""), envir = globalenv())

give what you want?

hth,
Matthias

Shubha Vishwanath Karanth wrote:
> How do I proceed from this stage?
> paste("data",1:10,sep="",collapse=",")
>
> Shubha Karanth | Amba Research
> Ph +91 80 3980 8031 | Mob +91 94 4886 4510 
> Bangalore * Colombo * London * New York * San José * Singapore * www.ambaresearch.com
>
> -----Original Message-----
> From: r-help-bounces at r-project.org [mailto:r-help-bounces at r-project.org] On Behalf Of Shubha Vishwanath Karanth
> Sent: Wednesday, May 14, 2008 3:59 PM
> To: r-help at stat.math.ethz.ch
> Subject: [R] dataframes to a list
>
>  
>
> Hi R,
>
>  
>
> I have the data frames, data1, data2....data50. Now I want to put all of
> these in a single list. But,
>
>  
>
>   
>> list(data1, data2,.........data50) is very big to write. How do I then
>>     
> do it?
>
>  
>
> Thanks,
>
> Shubha
>
>  
>
> This e-mail may contain confidential and/or privileged i...{{dropped:13}}
>
> ______________________________________________
> R-help at 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.
> This e-mail may contain confidential and/or privileged i...{{dropped:10}}
>
> ______________________________________________
> R-help at 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.
>   

-- 
Dr. Matthias Kohl
www.stamats.de



More information about the R-help mailing list