Cor: Correlation without NA's'

View source: R/noNa.r

CorR Documentation

Correlation without NA's'

Description

‘Cor’ computes the correlation of ‘x’ and ‘y’ if these are vectors. If ‘x’ and ‘y’ are matrices then the correlations between the columns of ‘x’ and the columns of ‘y’ are computed. Missing values are handled by casewise deletion. If there are no complete cases, that gives an error.

Usage

Cor(x, y = NULL, method = "pearson")

Arguments

x:

a numeric vector, matrix or data frame. y: ‘NULL’ (default) or a vector, matrix or data frame with compatible dimensions to ‘x’. The default is equivalent to ‘y = x’ (but more efficient).


benjaminpeeters/BePe documentation built on July 7, 2022, 5:45 p.m.