flattenList: flatten a list

Description Usage Arguments Value Source

View source: R/list.r

Description

unlike unlist, this function returns a list of objects of different data types, but removes any depth

Usage

1
flattenList(..., na_rm = FALSE)

Arguments

...

list or any set of objects which will be made into a list, may include lists and nested lists

na_rm

will drop NA values if TRUE

Value

list without nested lists, objects with preserved data types

Source

https://stackoverflow.com/questions/8139677/\ how-to-flatten-a-list-to-a-list-without-coercion


jwutil documentation built on May 7, 2019, 1:03 a.m.