Description Usage Arguments Details Value See Also Examples
resample
takes a random sample from a given vector.
1 |
x |
A vector of elements from which to sample. |
... |
Further arguments passed to |
This function is an alternative to sample
. Unlike the latter, it
always interprets the first argument as the set of elements to sample from,
even when it is of length 1. This consistency makes it more suitable for
programmatic use.
A vector of elements drawn from x
.
1 2 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.