get_path_list | R Documentation |
Function that recursively go through a list object and store in a tibble the
path of each element in the list. The paths can be after that edited and
accessed using parceval()
for example.
get_path_list(list_obj, .map_list = NULL)
list_obj |
R list object to be evaluated |
.map_list |
non usable parameter. This parameter is only there to ensure recursivity. Any modification of this object returns NULL |
A tibble containing all the paths of each element of the list and the class of each leaf (can be a list, or R objects).
parceval()
{
library(dplyr)
get_path_list(
list(
tibble = iris,
list = list(t1 = mtcars, t2 = tibble(iris)),
char = "foo"))
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.