View source: R/delist_singletons.R
delist_singletons | R Documentation |
delist_singletons
searches a list for elements that are list of length
1 and "delists" by assigning the contents to the name of the list.
delist_singletons(x)
x |
A list. |
A list.
mylist <- list("A" = 1, "B" = list(1:5), "C" = list(little = 1:3, tiny = 4:5)) mylist delist_singletons(mylist)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.