create_table_one | R Documentation |
Table one
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)
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. |
A dataframe containing the contingency tables for each of the variables in df
.
A matrix with distinct (factor) labels and corresponding counts and percentages.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.