sampleModif: sampleModif

View source: R/math.R

sampleModifR Documentation

sampleModif

Description

Internal soundgen function

Usage

sampleModif(x, ...)

Arguments

x

vector

...

other arguments passed to sample

Details

Same as sample, but without defaulting to x = 1:x if length(x) = 1. See https://stackoverflow.com/questions/7547758/using-sample-with-sample-space-size-1

Examples

soundgen:::sampleModif(x = 3, n = 1)
# never returns 1 or 2: cf. sample(x = 3, n = 1)

soundgen documentation built on Sept. 12, 2024, 6:29 a.m.