Description Usage Arguments Details Value

This function is a wrapper for the base `sample`

function
that circumvents the _undesired behavior_ from the _convenience feature_
discussed in the function's documentation.

1 | ```
sample_vector(x, ...)
``` |

`x` |
vector |

`...` |
additional arguments passed to |

For example, if `x`

contains a single element, say, 42, we wish
`sample(42)`

to return only `42`

rather than a random permutation
of `1:42`

.

a vector containing a random permutation of `x`

Embedding an R snippet on your website

Add the following code to your website.

For more information on customizing the embed code, read Embedding Snippets.