Description Usage Arguments See Also Examples
Probability mass function, distribution function, quantile function and random generation for the Bernoulli distribution.
1 2 3 4 5 6 7 |
x, q |
vector of quantiles. |
prob |
probability of success; ( |
log, log.p |
logical; if TRUE, probabilities p are given as log(p). |
lower.tail |
logical; if TRUE (default), probabilities are P[X ≤ x] otherwise, P[X > x]. |
p |
vector of probabilities. |
n |
number of observations. If |
1 | prop.table(table(rbern(1e5, 0.5)))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.