prop_post_fun {junco} | R Documentation |
Split Function for Proportion Analysis Columns (TEFCGIS08 e.g.)
Description
Here we just split into 3 columns n
, %
and Cum %
.
Usage
prop_post_fun(ret, spl, fulldf, .spl_context)
prop_split_fun(df, spl, vals = NULL, labels = NULL, trim = FALSE, .spl_context)
Arguments
ret |
( |
spl |
( |
fulldf |
( |
.spl_context |
( |
df |
A data frame that contains all analysis variables. |
vals |
A character vector that contains values to use for the split. |
labels |
A character vector that contains labels for the statistics (without indent). |
trim |
A single logical that indicates whether to trim the values. |
Value
a split function for use in rtables::split_rows_by.
Note
This split function is used in the proportion table TEFCGIS08 and similar ones.
See Also
rtables::make_split_fun()
describing the requirements for this kind of
post-processing function.
[Package junco version 0.1.1 Index]