View source: R/additional_distributions.R
| rdiscrete | R Documentation |
Sample from a finite set.
rdiscrete(n, locations, frequencies = NULL)
n |
Number of "draws". |
locations |
Location of spikes/only values with non-zero probability. |
frequencies |
Frequencies/probabilities of the spikes. |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.