Skip to content
Prev 67619 / 398506 Next

Map a string to an object

On Wed, 2005-04-13 at 19:46 -0400, Fernando Saldanha wrote:
Yep. You are close.

See ?get
[1]  1  2  3  4  5  6  7  8  9 10
function (name, pos = -1, envir = as.environment(pos), all.names =
FALSE,
    pattern)
{
    if (!missing(name)) {
        nameValue <- try(name)
...


HTH,

Marc Schwartz