create_table_one {hgutils} | R Documentation |
Table one
Description
Table one
Usage
create_table_one(df, numbers_as_categories = TRUE, deaths = NULL)
create_contigency_table(df, x, max_size = 8, numbers_as_categories = TRUE, ...)
percentage_table(x, n_digits = 2)
Arguments
df |
|
numbers_as_categories |
Whether numbers should be categorized. |
deaths |
The number of deaths in the population. |
x |
column vector name in |
max_size |
maximum size of unique elements in the numeric variable |
... |
Arguments passed on to
|
n_digits |
The number of digits to which the percentages are rounded. |
Value
A dataframe containing the contingency tables for each of the variables in df
.
A matrix with distinct (factor) labels and corresponding counts and percentages.