Description Usage Arguments Details Value Author(s) Examples
Subsample from a vector.
1 |
x |
(vector) A vector of values to be sampled. |
size |
(integer) The number of values to sample. |
... |
additional arguments taken by |
This function is essentially the sample
command but without the
bug that sampling a vector x
of length one returns a permutation
of 1:x
. This function was taken from an old help file for sample
.
A vector.
Peter Hoff
1 2 3 4 5 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.