Description Usage Arguments Examples
Generate a column of differences and standard errors
1 | textablr_diff_col(data, var_labels, group_var, group1, group2)
|
data |
the data |
var_labels |
named vector of variable labels. This is required For example, to get summaries of the 'educ' variable 'Education' and the 'expr' variable 'Experience' make this 'c("Education" = "educ", "Experience" = "expr")' Note: this also sets the order of variables in the table |
group_var |
the variable (if any) to group on |
group1 |
the first group, the difference will be group1 - group2 |
group2 |
the second group, the difference will be group1 - group2 |
1 2 | mtcars_var_labels <- c("MPG" = "mpg", "Displacement" = "disp", "Horse Power (?)" = "hp")
textablr_diff_col(mtcars, var_labels = mtcars_var_labels, "gear", 3, 5)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.