Skip to content
Prev 42549 / 398506 Next

converting a character string to a R object

Please do use a meaningful subject line.

You are looking for get(): get("a") returns the R object named "a" (if one 
is in scope).

Note that if you use R-devel (the development version of R, see the FAQ) 
you _can_ use underscore in object names.
On Thu, 8 Jan 2004, Sixten Borg wrote:

            
Rather, more like following a pointer in C.  A cast would be
as.data.frame("a")  or as("a", "data.frame"), which is not what you want.