powered by
This function is a wrapper around assign() that exports the contents of a named list to an environment. The variable names in the target environment are constructed from the names of the list items or taken from a separate argument.
assign()
export.list(arg.list, arg.names = names(arg.list), target.env = .GlobalEnv)
Invisible NULL.
NULL
list of objects, possibly named.
names to use for the items in the target environment. Use the names of arg.list by default.
arg.list
The target environment. Use the global environment by default.
Roland
https://stackoverflow.com/a/17484932/946850
export(), assign()
export()
export.list(list(newly.created.var = 5)) newly.created.var rm(newly.created.var)
Run the code above in your browser using DataLab