Simulates Dice Rolls and Coin Flips


[Up] [Top]

Documentation for package ‘tidydice’ version 1.0.0

Help Pages

binom Binomial distribution as table.
binom_coin Binomial distribution of flipping a coin.
binom_dice Binomial distribution of rolling a dice.
circle_points Helper function to draw a circle
flip_coin Simulating flipping a coin.
force_coin Force a coin flipping result.
force_dice Force a dice rolling result.
parse_dice_formula Given a dice formula string, split it and return a dataframe with the list of functions.
parse_dice_formula_part Helper function to parse a dice formula
plot_binom Plot a binomial distribution.
plot_coin Plot result of flip_coin()
plot_dice Plot result of roll_dice()
plot_single_coin Draw a single coin
plot_single_dice Draw a single dice
roll_dice Simulating rolling a dice.
roll_dice_formula Simulating rolling a dice, using a formula
top_n_dice Helper function to get sum of top n dice