View source: R/utils-matchNested.R
unlistNested | R Documentation |
This function takes a nested list as input and unlists it recursively. It then removes any NA values and duplicates from the resulting vector.
unlistNested(element)
element |
The nested list to be unlisted. |
A vector with NA values and duplicates removed.
nested_list <- list(a = list(1, 2, NA), b = list(3, 4, 5))
unlistNested(nested_list)
# Output: [1] 1 2 3 4 5
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.