[R] Iteration in R
bps0002 at auburn.edu
Sat Dec 3 20:21:05 CET 2011
How would you do this with lapply to return a list?
I can't seem to get that to work (I haven't used these much and am trying to
Michael Weylandt wrote
> ? replicate
> 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@> 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@ mailing list
>> PLEASE do read the posting guide
>> and provide commented, minimal, self-contained, reproducible code.
> R-help@ mailing list
> PLEASE do read the posting guide
> and provide commented, minimal, self-contained, reproducible code.
View this message in context: http://r.789695.n4.nabble.com/Iteration-in-R-tp4154433p4154479.html
Sent from the R help mailing list archive at Nabble.com.
More information about the R-help