Description Usage Arguments Value
View source: R/stat_bivariate.R
Generate and format a correlation table for publication.
1 2 | stat_bivariate(x, use = "pairwise", method = "pearson", digits = 3,
variables = NULL, addpval = T)
|
x |
Tibble or dataframe. Numeric variables as columns, observations as rows. |
use |
Character. use="pairwise" is the default value and will do pairwise deletion of cases. use="complete" will select just complete cases. |
method |
Character. method="pearson" is the default value. The alternatives to be passed to cor are "spearman" and "kendall" |
digits |
Numeric. Number of digits to be displayed in the formated table. |
variables |
Character vector. Names of the variables in rows (if different from names in the dataframe). |
addpval |
Logical. Whether p-values should be added below the correlations. |
A correlation table formated for publication.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.