delist | R Documentation |
unlist a list of vectors, keeping vector names but not list names
delist(x)
x |
a list |
vector
test <- list(foo = c("a" = 1), bar = c("b" = 2))
## unlist will generally (in my opinion) keep too many or too few names
unlist(test)
unlist(test, use.names = FALSE)
## delist will (for some purposes) do this better
delist(test)
## also, recursively
test2 <- list(baz = c("c" = 3), quuz = test)
delist(test2)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.