R/helpers.R
dot-pearson.Rd
Calculates the Pearson's correlation coefficient between two numeric vectors
.pearson(r, g)
A numeric vector
numeric
A numeric of length one.
set.seed(123) r <- rnorm(10) set.seed(1234) g <- rnorm(10) .pearson(r, g) #> [1] 0.53322