powered by
Flatten a nested list while preserving the class of each element Convert a list type object into a non-nested list, preserving the original object classes.
flatten(x)
a list type object to flatten.
a list
https://stackoverflow.com/a/8139959/1007029