Package: tidydice 1.0.0
tidydice: Simulates Dice Rolls and Coin Flips
Utils for basic statistical experiments, that can be used for teaching introductory statistics. Each experiment generates a tibble. Dice rolls and coin flips are simulated using sample(). The properties of the dice can be changed, like the number of sides. A coin flip is simulated using a two sided dice. Experiments can be combined with the pipe-operator.
Authors:
tidydice_1.0.0.tar.gz
tidydice_1.0.0.zip(r-4.7)tidydice_1.0.0.zip(r-4.6)tidydice_1.0.0.zip(r-4.5)
tidydice_1.0.0.tgz(r-4.6-any)tidydice_1.0.0.tgz(r-4.5-any)
tidydice_1.0.0.tar.gz(r-4.7-any)tidydice_1.0.0.tar.gz(r-4.6-any)
tidydice_1.0.0.tgz(r-4.6-emscripten)
manual.pdf |manual.html✨
card.svg |card.png
tidydice/json (API)
NEWS
| # Install 'tidydice' in R: |
| install.packages('tidydice', repos = c('https://rolkra.r-universe.dev', 'https://cloud.r-project.org')) |
Bug tracker:https://github.com/rolkra/tidydice/issues
Last updated from:7d451caa27. Checks:9 OK. Indexed: yes.
| Target | Result | Time | Files | Syslog |
|---|---|---|---|---|
| linux-devel-x86_64 | OK | 167 | ||
| source / vignettes | OK | 296 | ||
| linux-release-x86_64 | OK | 168 | ||
| macos-release-arm64 | OK | 133 | ||
| macos-oldrel-arm64 | OK | 114 | ||
| windows-devel | OK | 103 | ||
| windows-release | OK | 94 | ||
| windows-oldrel | OK | 105 | ||
| wasm-release | OK | 125 |
Exports:binombinom_coinbinom_diceflip_coinforce_coinforce_diceparse_dice_formulaplot_binomplot_coinplot_diceroll_diceroll_dice_formula
Dependencies:assertthatclicpp11dplyrfarvergenericsggplot2gluegtableisobandlabelinglifecyclemagrittrpillarpkgconfigpurrrR6RColorBrewerrlangS7scalesstringistringrtibbletidyrtidyselectutf8vctrsviridisLitewithr
Readme and manuals
Help Manual
| Help page | Topics |
|---|---|
| Binomial distribution as table. | binom |
| Binomial distribution of flipping a coin. | binom_coin |
| Binomial distribution of rolling a dice. | binom_dice |
| Helper function to draw a circle | circle_points |
| Simulating flipping a coin. | flip_coin |
| Force a coin flipping result. | force_coin |
| Force a dice rolling result. | force_dice |
| Given a dice formula string, split it and return a dataframe with the list of functions. | parse_dice_formula |
| Helper function to parse a dice formula | parse_dice_formula_part |
| Plot a binomial distribution. | plot_binom |
| Plot result of flip_coin() | plot_coin |
| Plot result of roll_dice() | plot_dice |
| Draw a single coin | plot_single_coin |
| Draw a single dice | plot_single_dice |
| Simulating rolling a dice. | roll_dice |
| Simulating rolling a dice, using a formula | roll_dice_formula |
| Helper function to get sum of top n dice | top_n_dice |
