RE: [R] how to generate object name automatically?

From: Liaw, Andy <andy_liaw_at_merck.com>
Date: Sat 14 May 2005 - 02:14:50 EST


The obvious way is to use assign(). The possibly better way is to store the objects in a list.

Andy

> From: Xiao Shi
>
> Hi everybody,
> I have a lable vector ,
> raw.labs= paste("file1", 1:20, sep = "")
> And i can i make the content of raw.labs to be a object name.
> eg ,file1=123(use some function on raw.labs to generate the
> name file1)
> Thanks!
>
> [[alternative HTML version deleted]]
>
> ______________________________________________
> R-help@stat.math.ethz.ch mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide!
> http://www.R-project.org/posting-guide.html
>
>
>



R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html Received on Sat May 14 02:21:55 2005

This archive was generated by hypermail 2.1.8 : Fri 03 Mar 2006 - 03:31:45 EST