prop_table_afun {junco} | R Documentation |
Formatted Analysis Function for Proportion Analysis (TEFCGIS08 e.g.)
Description
This function applies to a factor x
when a column split was prepared with
prop_split_fun()
before.
Usage
prop_table_afun(x, .spl_context, formats, add_total_level = FALSE)
Arguments
x |
( |
.spl_context |
( |
formats |
( |
add_total_level |
( |
Details
In the column named n
, the counts of the categories as well as an
optional Total
count will be shown. In the column named percent
, the
percentages of the categories will be shown, with an optional blank entry for
Total
. In the column named cum_percent
, the cumulative percentages will
be shown instead.
Value
A VerticalRowsSection
as returned by rtables::in_rows.
[Package junco version 0.1.1 Index]