View source: R/unlistRecursive.r
unlistRecursive | R Documentation |
This function takes as an argument a list
. If any of its elements are also lists, it unlists them. The output is the same as the input, except that there will be one new element per element in each sublist, and the sublists will be removed.
unlistRecursive(x)
x |
A |
A list
.
unlist
x <- list(
a = 1:3,
b = list(
b1 = c("The", "quick", "brown", "function"),
b2 = 4:1,
b3 = list(
b3_1 = 5:7
)
),
c = "end"
)
unlistRecursive(x)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.