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


jackwasey/jwutil documentation built on Dec. 5, 2018, 5:31 a.m.