correlate: Compute correlation coefficients

Description Usage Arguments Value Examples

View source: R/correlation.R

Description

Computes correlation coefficients for all combinations of the specified variables. If no variables are specified, all numeric (integer or double) variables are used.

Usage

1
correlate(data, ..., method = "pearson")

Arguments

data

a tibble

...

Variables to compute correlations for (column names). Leave empty to compute for all numeric variables in data.

method

a character string indicating which correlation coefficient is to be computed. One of "pearson" (default), "kendall", or "spearman"

Value

a tibble

Examples

1
2
WoJ %>% correlate(ethics_1, ethics_2, ethics_3)
WoJ %>% correlate()

tidycomm documentation built on July 6, 2021, 5:07 p.m.