sampler {EnviroPRA2} | R Documentation |
Execute sampling with replacement
Description
Auxiliar function (employed only for internal use)
Usage
sampler(n, a)
Arguments
n |
Number of sampling iterations |
a |
data vector |
Value
Resampled vector of length n - Object class "numeric"
Author(s)
F. Barrio-Parra
Examples
a <- rnorm (n = 20, mean = 0, sd = 1)
b <- sampler (n = 100, a = a)
[Package EnviroPRA2 version 1.0.1 Index]