powered by
Performs sampling without replacement while avoiding undesired behaviour if x has length 1. See documentation of sample.
x
sample
resample(x, size, ...)
A vector from which to sample.
A non-negative number giving the size of the sample.
Further arguments to sample.