spearman {OmicsMarkeR} | R Documentation |
Calculates spearman rank correlation between two vectors
spearman(x, y)
x |
numeric vector of ranks |
y |
numeric vector of ranks with compatible length to x |
Returns the spearman rank coefficient for the two vectors
# Spearman demo v1 <- seq(10) v2 <- sample(v1, 10) spearman(v1, v2)