Description Arguments Value Usage See Also Examples
The counter widget displays the number of simulation iterations.
label |
A small caption/label for the widget. |
size |
A number used to designate the size (magnification) of the
widget. The default is set to |
placeOnGrid |
A row by column coordinate (e.g., |
Nothing.
1 |
Other eavesdroppers:
benchmark(),
counter_tally(),
eavesdropper_2D(),
eavesdropper_X(),
eavesdropper(),
injector_2D(),
injector_X(),
injector(),
number_pair(),
number_quartet(),
number_trio(),
number(),
progress_benchmark()
1 2 3 4 5 6 7 8 9 10 | ## Not run:
for (i in 1:250) {
switchboard(delay = 0.01) %>%
counter(label = "done at 250")
}
switchboard_close()
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.