Description Usage Arguments Examples
Turns each element of a list into an object in your global environment with the name of each element in the list becoming the name of that object. By default, the list is deleted at the end, although this behavior may be turned off.
1 2 | listToObjects(myList, deleteList = TRUE, objectNames = NULL,
overwriteExisting = TRUE, verbose = TRUE)
|
myList |
a list |
deleteList |
TRUE by default, should the list be deleted after? |
objectNames |
(optional) a vector of object names, one per element in
myList. By default, the names of the objects will be the names of myList,
which may be viewed via |
overwriteExisting |
TRUE by default, should the function overwrite
existing objects whose names are in |
verbose |
TRUE by default, should the function be verbose? |
1 2 | jake <- list(a = c(1, 2, 3), b = c(2, 3, 4))
listToObjects(jake)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.