flattenList {jwutil}R Documentation

flatten a list

Description

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

Usage

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


[Package jwutil version 1.2.3 Index]