CORREL: Calculate Correlation Between Two Vectors

Description Usage Arguments Value Author(s) See Also Examples

View source: R/CORREL.R

Description

Given two vectors, return the correlation coefficient between them.

Usage

1
CORREL(vec1, vec2)

Arguments

vec1

Vector of integers or numerics.

vec2

Vector of integers or numerics.

Value

Returns the correlation coefficient between the two vectors.

Author(s)

Nick Bultman, njbultman74@gmail.com, July 2021

See Also

cor

Examples

1
2
CORREL(c(1, 2, 4, 2), c(2, 5, 7, 2))
CORREL(c(1, 2, 4, 2, 8, 10, 12), c(2, 5, 7, 2, 20, 24, 12))

njbultman/xlsxFunctions documentation built on Aug. 8, 2021, 3:14 p.m.