powered by
Calculates the Pearson's correlation coefficient between two numeric vectors
.pearson(r, g)
A numeric vector
numeric
A numeric of length one.
# NOT RUN { set.seed(123) r <- rnorm(10) set.seed(1234) g <- rnorm(10) .pearson(r, g) # }
Run the code above in your browser using DataLab