list_flatten | R Documentation |
Flattening a list removes a single layer of internal hierarchy, i.e. it inlines elements that are lists leaving non-lists alone.
list_flatten(
x,
is_node,
name_spec = "{outer}_{inner}",
name_repair = c("minimal", "unique", "check_unique", "universal")
)
x |
A list. |
is_node |
A predicate function that determines whether an element is
a node (by returning |
name_spec |
If both inner and outer names are present, control
how they are combined. Should be a glue specification that uses
variables |
name_repair |
One of |
A list of the same type as x
. The list might be shorter
if x
contains empty lists, the same length if it contains lists
of length 1 or no sub-lists, or longer if it contains lists of
length > 1.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.