Here we just split into 3 columns n, % and Cum %.
prop_post_fun(ret, spl, fulldf, .spl_context)prop_split_fun(df, spl, vals = NULL, labels = NULL, trim = FALSE, .spl_context)
a split function for use in rtables::split_rows_by.
(list)
return value from the previous split function.
(list)
split information.
(data.frame)
full data frame.
(environment)
split context environment.
A data frame that contains all analysis variables.
A character vector that contains values to use for the split.
A character vector that contains labels for the statistics (without indent).
A single logical that indicates whether to trim the values.
rtables::make_split_fun() describing the requirements for this kind of
post-processing function.