0

If I have two vectors that represent random variables,

i.e

x<-rnorm(100000) y<-rexp(100000)

What would be the code to compute the correlation coefficient between the two vectors using for loops? I am fairly new to R so a simpler answer would be better. Thank you.