Learn R Programming

EnviroPRA2 (version 1.0.1)

sampler: Execute sampling with replacement

Description

Auxiliar function (employed only for internal use)

Usage

sampler(n, a)

Value

Resampled vector of length n - Object class "numeric"

Arguments

n

Number of sampling iterations

a

data vector

Author

F. Barrio-Parra

Examples

Run this code

a <- rnorm (n = 20, mean = 0, sd = 1)

b <- sampler (n = 100, a = a)

Run the code above in your browser using DataLab