Re: [R] Random number generation

From: David Barron <david.barron_at_sbs.ox.ac.uk>
Date: Thu, 31 Jul 2008 18:30:20 +0100

m <- runif(60000)
mm <- matrix(m, ncol=6)

HTH Dave

On Thu, Jul 31, 2008 at 6:24 PM, Max <mnevill_at_exitcheck.net> wrote:

> Hi Everyone,
>
> I did a quick search of the list and it looks like this may not have been
> asked before... I'm trying to generate a matrix of random numbers between 0
> and 1, with 6 columns, 10000 rows. About all I know is that runif(1) gives
> me the random number I'm looking for.
>
> Any help would be great!
>
> thanks,
>
> -Max
>
> ______________________________________________
> 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.
>

-- 
David Barron
Said Business School
Park End Street
Oxford OX1 1HP
01865 288906

	[[alternative HTML version deleted]]

______________________________________________
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.
Received on Thu 31 Jul 2008 - 18:58:01 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Thu 31 Jul 2008 - 19:33:02 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.

list of date sections of archive