Description Usage Arguments Value Examples
arma_sample
takes a sample of the specified size from
the elements of x
using either with or without replacement.
1 | arma_sample(x, size, replace)
|
x |
a vector of elements from which to choose. |
size |
a non-negative integer giving the number of items to choose. |
replace |
should sampling be with replacement. |
A vector of length size
with elements drawn from x
.
1 2 3 4 5 6 | ## Not run:
x <- 1:12
size <- 5
arma_sample(x, size, replace = TRUE)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.