unnest.list | R Documentation |
The list method for unnest() recursively ascends a nested list, removing uninformative levels.
## S3 method for class 'list'
unnest(x, ...)
x |
list |
list
Other unnest:
unnest.default()
,
unnest()
a <- 'ITEM: [ label: sunshine, [foo: 1, bar: 3]]'
# yaml.load() sees label nested one-deep, and foo nested two-deep:
yaml::yaml.load(a)
# unnest() sees label nested zero-deep, and foo nested one-deep:
unnest(yaml::yaml.load(a))
# as_yamlet() provides explicit name (default key) for second element of ITEM:
as_yamlet(a)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.