Description Usage Arguments Value Examples
For variables where the summary type was not specified in the function
call of fmt_table1
, assign_summary_type
assigns a type based on class and
number of unique levels.
1 | assign_summary_type(data, variable, class, summary_type)
|
data |
Data frame. |
variable |
Vector of column name. |
class |
Vector of classes (e.g. numeric, character, etc.)
corresponding one-to-one with the names in |
summary_type |
list that includes specified summary types,
e.g. |
Vector summary types c("continuous", "categorical", "dichotomous")
.
1 2 3 4 5 6 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.