Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

flatten_df

Flatten a nested data.frame


Description

Flatten a nested data.frame

Usage

flatten_df(df, factor_ext_to_char = FALSE)

Arguments

df

The data.frame to flatten

factor_ext_to_char

Should extended factor variables be converted to characters (mainly for easy printing)

Details

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.

Value

A flattened data.frame

Author(s)

Holger Hoefling


hdf5r

Interface to the 'HDF5' Binary Data Format

v1.3.3
Apache License 2.0 | file LICENSE
Authors
Holger Hoefling [aut, cre], Mario Annau [aut], Novartis Institute for BioMedical Research (NIBR) [cph]
Initial release

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.