This function takes in the meta data table, and calls the appropriate summarize function.
1 2 | calculate_summary_stat(data, variable, by, summary_type, dichotomous_value,
var_label, stat_display, digits, class, missing)
|
data |
Data frame |
variable |
Character variable name in |
by |
Character variable name in |
summary_type |
A list that includes specified summary types. |
dichotomous_value |
If the output is dichotomous, then this is the value |
var_label |
String label |
stat_display |
String that specifies the format of the displayed statistics.
The syntax follows |
digits |
integer indicating the number of decimal places to be used. |
class |
variable class. If class is NA, then all values are NA, and no summary statistics will be calculated. |
missing |
whether to include NA values in the table. |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.