resample takes a sample of the specified size from the
x using either with or without replacement.
A numeric, complex, character or logical vector from which to choose.
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.
resample differs from the S/R
sample function in
resample always considers
x to be a vector of elements
to select from, while
sample treats a vector of length one as a
special case and samples from
1:x. Otherwise, the functions
have identical behavior.
Vector of the same length as the input, with the elements permuted.
Gregory R. Warnes [email protected]
1 2 3 4 5 6 7
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.