tab_metrics_items_cor | R Documentation |
tab_metrics_items_cor(
data,
cols,
cross,
method = "pearson",
digits = 2,
labels = TRUE,
clean = TRUE,
...
)
data |
A tibble. |
cols |
The source columns. |
cross |
The target columns or NULL to calculate correlations within the source columns. |
method |
The output metrics, pearson = Pearson's R, spearman = Spearman's rho. |
digits |
The number of digits to print. |
labels |
If TRUE (default) extracts labels from the attributes, see codebook. |
clean |
Prepare data by data_clean. |
... |
Placeholder to allow calling the method with unused parameters from tab_metrics. |
A volker tibble.
library(volker)
data <- volker::chatgpt
tab_metrics_items_cor(
data,
starts_with("cg_adoption_adv"),
sd_age,
metric = TRUE
)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.