Simulation - Hadley Wickham
Simulation - Hadley Wickham
Simulation - Hadley Wickham
SHOW LESS
You also want an ePaper? Increase the reach of your titles
YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.
Repetition<br />
• Use the replicate function<br />
• replicate(n, expression)<br />
• replicate(10, mean(rnorm(100)))<br />
• qplot(replicate(100, mean(rnorm(10))),<br />
type="histogram")