File: flatten_df.Rd

package info (click to toggle)
r-cran-hdf5r 1.3.3%2Bdfsg-5
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 12,344 kB
  • sloc: ansic: 85,341; sh: 51; python: 32; makefile: 13
file content (29 lines) | stat: -rw-r--r-- 774 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/Helper_functions.R
\name{flatten_df}
\alias{flatten_df}
\title{Flatten a nested data.frame}
\usage{
flatten_df(df, factor_ext_to_char = FALSE)
}
\arguments{
\item{df}{The data.frame to flatten}

\item{factor_ext_to_char}{Should extended factor variables be converted to characters (mainly for easy printing)}
}
\value{
A flattened \code{\link{data.frame}}
}
\description{
Flatten a nested data.frame
}
\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 \code{\link{factor_ext}} to
character variables.
}
\author{
Holger Hoefling
}