flatten_list: Flatten a list

Description Usage Arguments Examples

Description

Flatten a list

Usage

1
flatten_list(x, lev = 1)

Arguments

x

a list

lev

the level to which the list is to be flatten. Calculated using link{list_depth}

Examples

1
2
3
str(x <- list(a = list(b = 1, c = list(d = 2, e = 3)), f = 4, g = list(h = list(i = 5))))
str(flatten_list(x, 1))
str(flatten_list(x, 2))

SESman/rbl documentation built on May 9, 2019, 11:10 a.m.