Description Usage Arguments Value See Also Examples
Generate a random vector without replacement.
1 | r_sample_replace(n, x = 1:100, prob = NULL, replace = FALSE, name = "Sample")
|
n |
The number elements to generate. This can be globally set within
the environment of |
x |
A vector of elements to chose from. |
prob |
A vector of probabilities to chose from. |
replace |
logical. If |
name |
The name to assign to the output vector's |
Returns a random vector of elements.
1 2 3 4 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.