s_proportion_factor {junco} | R Documentation |
s_function for proportion of factor levels
Description
A simple statistics function which prepares the numbers with percentages in the required format. The denominator here is from the alternative counts data set in the given row and column split.
If a total row is shown, then here just the total number is shown (without 100%).
Usage
s_proportion_factor(
x,
.alt_df,
use_alt_counts = TRUE,
show_total = c("none", "top", "bottom"),
total_label = "Total"
)
Arguments
x |
( |
.alt_df |
( |
use_alt_counts |
( |
show_total |
( |
total_label |
( |
Value
The rtables::in_rows()
result with the proportion statistics.
See Also
s_proportion_logical()
for tabulating logical x
.