Learn R Programming

tidydice (version 1.0.0)

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)

Value

binomial distribution as a tibble

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)

Examples

Run this code
binom_coin(times = 10)

Run the code above in your browser using DataLab