Description Usage Arguments Value Examples
Set a list value using path-style targeting
1 | set_list_path(l, target, value)
|
l |
a list object |
target |
a character object specifying the "path" to the target. |
value |
an object or value to insert at the target location |
a list object
1 2 3 4 5 6 7 8 9 10 11 12 13 14 | l <- list(forest = list(country = "USA",
maple = list(height = 100)))
l <- set_list_path(l,
target = "/forest/spruce/height",
value = 30)
l <- set_list_path(l,
target = "/forest/maple/diameter",
value = 6)
l <- set_list_path(l,
target = "/valley/country",
value = "Canada")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.