extract_pmf | R Documentation |
Extract probability mass function from vector of samples
extract_pmf(x, support = NULL)
x |
Vector of samples from a distribution. |
support |
Vector of all possible values that the distribution can take. Can be NULL. |
Dataframe with columns: Value
, Probability.
extract_pmf(round(rnorm(1e3, 0, 10))) %>% head()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.