[R] Iteration in R
R. Michael Weylandt
michael.weylandt at gmail.com
Sat Dec 3 20:11:46 CET 2011
or a for loop
or do all one hundred simulations at once
x <- matrix(rnorm(100^2, 1, 2), 100)
It's going to depend on what you want to do with the numbers.
On Sat, Dec 3, 2011 at 1:10 PM, Martin Zonyrah <martin2005z at yahoo.com> wrote:
> I need help. I am trying to iterate this command x <- rnorm(100, 1.0, 2.0) one hundred times in R but I don't seem to have a clue.
> Can anyone help?
> Your help is very much appreciated.
> [[alternative HTML version deleted]]
> R-help at r-project.org mailing list
> 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