flatten_list | R Documentation |
Internal function to flatten a nested list
flatten_list(
lis,
levels = 1:100,
level = 1,
key_parent = "",
lis_flat = list()
)
lis |
a nested list |
levels |
an integer vector indicating levels in the list |
level |
an internal argument to pass current levels |
key_parent |
an internal argument to pass for parent keys |
lis_flat |
an internal argument to pass the flattened list |
lis <- list("A" = list("B" = c("b", "B"), c("a", "A", "aa")))
quanteda:::flatten_list(lis, 1:2)
quanteda:::flatten_list(lis, 1)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.