R/utils.R
resample.Rd
Like sample, but when given a single value x, returns back that single value instead of a random value from 1 to x.
resample(x, ...)
Vector or single value to sample from
Remaining arguments for base::sample function
Numeric vector result of running base::sample.