[R] creating several different matrices

Rui Barradas ruipbarradas at sapo.pt
Tue Sep 11 17:59:58 CEST 2012


Hello,

Try, using data and matrix dims of your choice,

replicate(100, matrix(rnorm(12), ncol = 3))

Hope this helps,

Rui Barradas
Em 11-09-2012 15:17, cesare orsini escreveu:
> Dear people,
>
> I need to generate 100 different matrices, without particular
> characteristics but using only one command!
>
> Do you know some way?
>
> thank You
>
>
>
> --
> View this message in context: http://r.789695.n4.nabble.com/creating-several-different-matrices-tp4642768.html
> Sent from the R help mailing list archive at Nabble.com.
>
> ______________________________________________
> 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