resample: Safe Sampling

View source: R/internals.r

resampleR Documentation

Safe Sampling

Description

Performs sampling without replacement while avoiding undesired behaviour if x has length 1. See documentation of sample.

Usage

resample(x, size, ...)

Arguments

x

A vector from which to sample.

size

A non-negative number giving the size of the sample.

...

Further arguments to sample.


RecordLinkage documentation built on Nov. 10, 2022, 5:42 p.m.