View source: R/empirical_dist.R
| sampler.empirical_dist | R Documentation |
empirical_dist object.Method for obtaining the sampler for a empirical_dist object.
## S3 method for class 'empirical_dist'
sampler(x, ...)
x |
The object to obtain the sampler of. |
... |
Additional arguments to pass (not used). |
A function that takes n and returns n resampled
observations.
ed <- empirical_dist(c(10, 20, 30))
s <- sampler(ed)
set.seed(42)
s(5)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.