resample: Resample a vector

View source: R/RIVPACS.R

resampleR Documentation

Resample a vector

Description

This function adapted from the resample function in ?sample. It silently returns the whole vector in random order when size > length(x).

Usage

resample(x, size = length(x), ...)

Arguments

x

a vector

n

sample size

Value

a vector of length n with the sample


jasonelaw/RIVPACS documentation built on Sept. 27, 2022, 6:34 p.m.