[R] How to create a random matrix

Rolf Turner r.turner at auckland.ac.nz
Tue Aug 25 00:30:37 CEST 2009


On 25/08/2009, at 10:17 AM, Peng Yu wrote:

> Hi,
>
> I did a search but I was able to find how to generate a random matrix.
> Can somebody let me know how to do it?

Uhhh, generate some random numbers and then arrange them in a matrix?

?matrix
?runif
?rnorm
?rgamma
    .
    .
    .

	cheers,

		Rolf Turner

######################################################################
Attention:\ This e-mail message is privileged and confid...{{dropped:9}}




More information about the R-help mailing list