View source: R/get_vectors_from_nested_list.R
get_vectors_from_nested_list | R Documentation |
Return one or more values from a nested list in a list of vectors
get_vectors_from_nested_list(x, valuesIn = NULL, nestingIn = "children")
x |
The nested list |
valuesIn |
The names holding the values to return (in vectors) |
nestingIn |
The name containing the nested lists |
A list of vectors.
nestedList <- list( id = "x", value = "value for x", children = list( list( id = "y", value = "value for y" ), list( id = "z", value = "value for z" ) ) ); str(nestedList); get_vectors_from_nested_list( nestedList, c("id", "value") );
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.