Learn R Programming

tidydice (version 0.0.6)

binom_coin: Binomial distribution of flipping a coin.

Description

Generates a tibble containing the binomial distribution of flipping a coin using dbinom().

Usage

binom_coin(times, sides = 2, success = 2)

Arguments

times

how many times a coin is flipped (or how many coins are flipped at the same time)

sides

number of sides of the coin (default = 2)

success

which result is a success (default = 2)

Value

binomial distribution as a tibble

Examples

Run this code
# NOT RUN {
binom_coin(times = 10)
# }

Run the code above in your browser using DataLab