Helper Function for Tabulation of a Single Biomarker Result
Source:R/h_biomarkers_subgroups.R
h_tab_one_biomarker.Rd
Please see h_tab_surv_one_biomarker()
and h_tab_rsp_one_biomarker()
, which use this function for examples.
This function is a wrapper for rtables::summarize_row_groups()
.
Usage
h_tab_one_biomarker(
df,
afuns,
colvars,
na_str = default_na_str(),
.indent_mods = 0L,
...
)
Arguments
- df
(
data.frame
)
results for a single biomarker.- afuns
(named
list
offunction
)
analysis functions.- colvars
(
list
withvars
andlabels
)
variables to tabulate and their labels.- na_str
(
string
)
string used to replace allNA
or empty values in the output.- .indent_mods
(named
integer
)
indent modifiers for the labels. Defaults to 0, which corresponds to the unmodified default behavior. Can be negative.- ...
additional arguments for the lower level functions.