Hello, i am fairly new to RStudio, so please excuse me if this question is rather basic. Im used to having named variables from a data set and dont use self simulated data much.

i generated a data set with

x = mvrnorm(n, mu, Sigma)
with 2 Variables in a correlation matrix for Sigma.

I now need to use only one of the simulated variables and i have no idea how to extract variable 1 or 2 separately.

Hello, welcome to the forum , I see its your first time posting. First advice for you is to declare the package your function is from. mvrnorm is a function in several CRAN packages. I would guess MASS is the most likely?