corr: Compute correlation matrix

Description Usage Arguments Author(s) Examples

View source: R/corr.R

Description

Compute Spearman and Pearson correlation matrix.

Usage

1
corr(v, pcc = F)

Arguments

v

a data.frame (or list) should be taken.

pcc

if TRUE, ignore result of normality test and use Pearson correlation coefficient

Author(s)

Chand Zhang

Examples

1
2
3
4
5
# example 1
corr(mtcars[, 1:5])

# example 2
corr(mtcars[, 1:5], pcc = T)

Chand-CN/flux documentation built on Oct. 4, 2020, 10:09 p.m.