View source: R/dthelper-simulation.R
resample | R Documentation |
Resamples from a given vector. Useful for bootstrapping
resample(x, n)
x |
vector object |
n |
Number of samples to draw |
vector object
set.seed(100) x <- rnorm(50) resample(x, 50)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.