View source: R/comparison_table.R
Compares a variable across a group, both visually and with an appropriate statistical test.
1 |
... |
The variables to compare, plus any relevant filters contained within 'filters()'. Currently supports one or two variables. |
type |
character. "Continuous" if 'variable' is continuous data (like age), or "categorical" / "discrete" if 'variable' is categorical data (like hometown). This can be automatically inferred by whether the variable is numeric or not. |
na.rm |
logical. Whether or not to remove NAs from the variables being considered. |
top |
numeric. See documentation for 'tab'. |
data |
data frame. The data to test. |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.