nested_names: Delimited names of a nested list.

Description Usage Arguments Value Examples

Description

Unnamed values will use index number instead.

Usage

1
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

1
2
3
4
stagerunner:::nested_names(list(a = list(b = 1, c = list(d = 2, e = 3)), f = 4, 5))
# 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 = '#')
# c('#a b', '#a c', '#d')

syberia/stagerunner documentation built on May 30, 2019, 10:41 p.m.