listFlatten | R Documentation |
Flattens a list recursively, converting vector elements to list elements, producing a one-level list with all elements length 1. Names may not be preserved.
listFlatten(data)
data |
list or vector |
single-level list with all list elements of length 1
listFlatten(list(list(list(1:5))))
listFlatten(7)
listFlatten(7:9)
listFlatten("foo")
listFlatten(c("foo","gorp"))
data <- list(list(3:4,"apple"), TRUE, list(list(5.1,"foo"),NULL))
listFlatten(data)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.