replicate | R Documentation |
base::replicate()
but with a progress bar.Same as base::replicate()
but with a progress bar.
replicate(
n,
expr,
simplify = "array",
format = "Replicating : [:bar] :percent in :elapsed",
...
)
n |
Integer: the number of replications. |
expr |
The expression (a language object, usually a call) to evaluate repeatedly. |
simplify |
Passed to |
format |
Progress bar format. |
... |
Extra arguments are passed to |
replicate(50000, rnorm(1) > 1.65) |>
(\(x) list(mean = mean(x), sd = sd(x)))()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.