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.5)tidydice_1.0.0.zip(r-4.4)tidydice_1.0.0.zip(r-4.3)
tidydice_1.0.0.tgz(r-4.4-any)tidydice_1.0.0.tgz(r-4.3-any)
tidydice_1.0.0.tar.gz(r-4.5-noble)tidydice_1.0.0.tar.gz(r-4.4-noble)
tidydice_1.0.0.tgz(r-4.4-emscripten)tidydice_1.0.0.tgz(r-4.3-emscripten)
tidydice.pdf |tidydice.html✨
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 2 years agofrom:7d451caa27. Checks:OK: 7. Indexed: yes.
Target | Result | Date |
---|---|---|
Doc / Vignettes | OK | Nov 23 2024 |
R-4.5-win | OK | Nov 23 2024 |
R-4.5-linux | OK | Nov 23 2024 |
R-4.4-win | OK | Nov 23 2024 |
R-4.4-mac | OK | Nov 23 2024 |
R-4.3-win | OK | Nov 23 2024 |
R-4.3-mac | OK | Nov 23 2024 |
Exports:binombinom_coinbinom_diceflip_coinforce_coinforce_diceparse_dice_formulaplot_binomplot_coinplot_diceroll_diceroll_dice_formula
Dependencies:assertthatclicolorspacecpp11dplyrfansifarvergenericsggplot2gluegtableisobandlabelinglatticelifecyclemagrittrMASSMatrixmgcvmunsellnlmepillarpkgconfigpurrrR6RColorBrewerrlangscalesstringistringrtibbletidyrtidyselectutf8vctrsviridisLitewithr
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 |