Description Usage Arguments Value Examples
Retrieve an object from a list using path-style targeting
1 | get_list_path(l, target)
|
l |
a list object |
target |
a character object specifying the "path" to the target. |
a list object
1 2 3 4 5 6 7 8 9 10 11 | l <- list(forest = list(country = "USA",
maple = list(height = 100)))
maple_height <- get_list_path(l,
target = "/forest/maple/height")
forest_list <- get_list_path(l,
target = "/forest")
forest_country <- get_list_path(l,
target = "/forest/country")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.