bigsample
samples quicker from large pools than sample
does.
bigsample(x, ...)
# S3 method for default
bigsample(x, size, replace = FALSE, prob = NULL, negative = FALSE, ...)
# S3 method for ff
bigsample(x, size, replace = FALSE, prob = NULL, ...)
a vector of elements sampled from the pool (argument 'x')
the pool to sample from
the number of elements to sample
TRUE to use sampling with replacement
optional vector of sampling probabilities (recyled to pool length)
negative
...
Daniel Adler, Jens Oehlschlägel, Walter Zucchini
For small pools sample
is called.
sample
, ff