Learn R Programming

tidydice (version 0.0.6)

binom: Binomial distribution as table.

Description

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

Usage

binom(times, prob_success)

Arguments

times

number of trials

prob_success

probability of success (number between 0 and 1)

Value

Binomial distribution as a tibble

Examples

Run this code
# NOT RUN {
binom(times = 10, prob_success = 1/10)
# }

Run the code above in your browser using DataLab