[R] random number generation

Michael Dewey lists at dewey.myzen.co.uk
Wed Nov 11 17:58:57 CET 2015

Dear Leila

Does the function mvrnorm in package MASS do what you want?

On 11/11/2015 08:38, leila zamani via R-help wrote:
> Hi every one,
> I'm new to R. I read about R and search all the packages but I couldn't find the package that I want. I want to generate 2D (matrices) random numbers that have correlation between them. One of my friends said that R has a function in geor like rand...(spherical (correlation coefficient=0.5)), but I read all packages with geo,like geor,geoRlgm,georob and etc, but I didn't find this! Can you help me? Thanks.
> 	[[alternative HTML version deleted]]
> ______________________________________________
> R-help at r-project.org mailing list -- To UNSUBSCRIBE and more, see
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.


More information about the R-help mailing list