spearman: Spearman Rank Correlation Coefficient

Description Usage Arguments Value Examples

Description

Calculates spearman rank correlation between two vectors

Usage

1
spearman(x, y)

Arguments

x

numeric vector of ranks

y

numeric vector of ranks with compatible length to x

Value

Returns the spearman rank coefficient for the two vectors

Examples

1
2
3
4
# Spearman demo
v1 <- seq(10)
v2 <- sample(v1, 10)
spearman(v1, v2)

cdeterman/OmicsMarkeR documentation built on May 13, 2019, 2:35 p.m.