powered by
Analysis function to count levels of a factor with percentage of the column total
counts_wpcts(x, .N_col)
A RowsVerticalSection object with counts (and percents) for each level of the factor.
RowsVerticalSection
(factor) a vector of data, provided by rtables pagination machinery.
factor
(integer(1)) total count for the column, provided by rtables pagination machinery.
integer(1)
counts_wpcts(DM$SEX, 400)
Run the code above in your browser using DataLab