Unbiased Random Samples and Permutations
dqsample(x, size, replace = FALSE, prob = NULL) dqsample.int(n, size = n, replace = FALSE, prob = NULL)
either a vector of one or more elements from which to choose, or a positive integer.
a non-negative integer giving the number of items to choose.
should sampling be with replacement?
a vector of probability weights for obtaining the elements of the vector being sampled.
a positive number, the number of items to choose from.