On 05/05/2010 08:45 AM, Anthony Fristachi wrote:
Hello,

I would like to convert an objects list  such as  objects() or ls()  that outputs    "a101"    "a102"    
"a104"    "a107"    "a109"

to read within a list statement as follows :  list(a101,a102,a104,a107,a109)

Hi Tony,
Try this:

x<-1:3
y<-letters[4:7]
z<-factor(c("fl","go","tw"))
result<-sapply(objects(),"get")

Jim

______________________________________________
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.

Reply via email to