powered by
Returns a list of the objects named in x
NamesToObjects(x, envir)
Vector or list of named objects
Environment in which to search
A list of objects
Return a list of named objects
x is given as either a character vector containing names of objects to return, or a list. If x is a list, it will first be converted to character. If objects do not exist, no error or warning will be generated.
# NOT RUN { mojo <- 4 gonzo <- "Moe" lstObjects <- NamesToObjects(c("mojo", "gonzo")) # } # NOT RUN { # }
Run the code above in your browser using DataLab