as.list2 | R Documentation |
Converting a vector to a list with names specified.
as.list2(x, name = TRUE, ...)
x |
a vector. |
name |
specify the names of list. Setting the names of list as x by default. |
... |
Additional parameters provided in the as.list function. |
as.list2(c('a', 'b'))
as.list2(c('a', 'b'), name = FALSE)
as.list2(c('a', 'b'), name = c('c', 'd'))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.