[R] Map a string to an object

Fernando Saldanha fsaldan1 at gmail.com
Thu Apr 14 01:46:08 CEST 2005


Is there a way in R to get an object whose name is given by a string?

That is, like a function getObject(mystring) such that

getObject('astring') 

returns the object astring (assuming it exists)?

Thanks.

FS




More information about the R-help mailing list