View source: R/binomial_distribution.R
binomial_ | R Documentation |
This function calculates the binomial distribution probability.
binomial_(n = NULL, x = NULL, p = NULL, learn = FALSE, interactive = FALSE)
n |
Optional number of trials (not needed for interactive mode) |
x |
Optional number of successes (not needed for interactive mode) |
p |
Optional probability of success (not needed for interactive mode) |
learn |
Logical, if TRUE shows step-by-step explanation |
interactive |
Logical, if TRUE enables interactive practice mode |
The binomial probability (for non-interactive mode)
n <- 3
x <- 2
p <- 0.7
# Simple calculation
binomial_(n, x, p)
# Learning mode
binomial_(n, x, p, learn = TRUE)
# Interactive mode
if(interactive()){
binomial_(interactive = TRUE)
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.