flatten | R Documentation |
Flatten a nested list, regardless of its level of nesting.
flatten(x)
x |
A list |
An unnested list
Other development tools:
GET()
,
chart_layout()
,
convert_date()
,
default_dates()
,
fetch()
,
is.date()
# script start;
# 1) create a nested list
nested_list <- list(
a = 1,
b = list(
c = 2,
d = 3
)
)
# 2) flatten the
# nested list
cryptoQuotes:::flatten(
nested_list
)
# script end;
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.