Learn R Programming

AquaBPsim (version 0.0.1)

cor_var: simulating correlated variable

Description

simulating correlated variable

Usage

cor_var(x, cor)

Arguments

x

Vector of values to which the other vector needs to be correlated

cor

correlation

Value

Returns a vector with values that are correlated to vector x.

Examples

Run this code
# 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