Unnamed values will use index number instead.

nested_names(el, delim = "/", prefix = "")

Arguments

el

list.

delim

character. The delimiter with which to separate nested names.

prefix

character. A prefix to every name.

Value

a list of nested names

Examples

stagerunner:::nested_names(list(a = list(b = 1, c = list(d = 2, e = 3)), f = 4, 5))
#> [1] "a/b" "a/c/d" "a/c/e" "f" "3"
# c('a/b', 'a/c/d', 'a/c/e', 'f', '3') stagerunner:::nested_names(list(a = list(b = 1, c = 2), d = 2), delim = ' ', prefix = '#')
#> [1] "#a b" "#a c" "#d"
# c('#a b', '#a c', '#d')