[R] Data generation

MK mkao006rmail at gmail.com
Mon Jan 30 09:53:03 CET 2012


Assuming you want the whole data matrix coming from a single distribution.

matrix(rnorm(20 *30, 3, 1), 20, 30)


On 30/01/12 06:33, Partha Sinha wrote:
> I want to generate a data matrix (20*30) having mean 3 and std
> deviation 1 (normal dist).
> pl help
> Partha
>
> ______________________________________________
> R-help at r-project.org mailing list
> 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