Learn R Programming

tidycomm (version 0.0.1)

correlate: Compute correlation coefficients

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

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

Arguments

data
...

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

See Also

Other correlations: correlation_test

Examples

Run this code
# NOT RUN {
WoJ %>% correlate(ethics_1, ethics_2, ethics_3)
WoJ %>% correlate()

# }

Run the code above in your browser using DataLab