flattenList: 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