Learn R Programming

tidydice (version 1.0.0)

binom_dice: Binomial distribution of rolling a dice.

Description

Generates a tibble containing the binomial distribution of rolling the dice using dbinom().

Usage

binom_dice(times, sides = 6, success = 6)

Value

Binomial distribution as a tibble

Arguments

times

How many times a dice is rolled (or how many dice are rolled at the same time)

sides

Number of sides of the dice (default = 6)

success

Which result is a success (default = 6)

Examples

Run this code
binom_dice(times = 10)

Run the code above in your browser using DataLab