Why not just use matrix(runif(9),nrow=3) ?
--
View this message in context:
http://n4.nabble.com/Matrices-with-randomly-generated-entries-tp1018777p1024617.html
Sent from the R help mailing list archive at Nabble.com.
__
R-help@r-project.org ma
On Jan 20, 2010, at 4:55 PM, jshort wrote:
I'm attempting to generate matrices where the entries are randomly
generated
numbers of specified distribution.
The following code was an attempt to create a 3 by 3 matrix, where my
entries where randomly generated from a uniform (0,1) distributio
I'm attempting to generate matrices where the entries are randomly generated
numbers of specified distribution.
The following code was an attempt to create a 3 by 3 matrix, where my
entries where randomly generated from a uniform (0,1) distribution.
x = matrix(0,ncol = 3, byrow = T)
for(i in 1:
3 matches
Mail list logo