r_ply | R Documentation |
Evalulate expression n times then discard results
r_ply(.n, .expr, .progress = "none", .print = FALSE)
.n |
number of times to evaluate the expression |
.expr |
expression to evaluate |
.progress |
name of the progress bar to use, see |
.print |
automatically print each result? (default: |
This function runs an expression multiple times, discarding the results.
This function is equivalent to replicate
, but never returns
anything
Hadley Wickham (2011). The Split-Apply-Combine Strategy for Data Analysis. Journal of Statistical Software, 40(1), 1-29. https://www.jstatsoft.org/v40/i01/.
r_ply(10, plot(runif(50)))
r_ply(25, hist(runif(1000)))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.