powered by
simulating correlated variable
cor_var(x, cor)
Vector of values to which the other vector needs to be correlated
correlation
Returns a vector with values that are correlated to vector x.
# NOT RUN { cor_var(c(2,4,2,2,6,7,5,6,6,7,9,4,5), 0.5) # }
Run the code above in your browser using DataLab