Flatten a nested data.frame
flatten_df(df, factor_ext_to_char = FALSE)
The data.frame to flatten
Should extended factor variables be converted to characters (mainly for easy printing)
A flattened data.frame
HDF5 Compounds allow for nesting. Correspondingly, nested data.frames are being produced. This function flattens such a nested data.frame.
For easier printing to the screen, it also allows for coercion of factor_ext
to
character variables.