Description Usage Arguments Value Author(s) Examples
Draw a sorted sample of integers.
1 | sorted_sample_int(n, size, replace = FALSE, prob = NULL)
|
n |
a positive number, the number of items to choose from. See ‘Details.’ |
size |
a non-negative integer giving the number of items to choose. |
replace |
should sampling be with replacement? |
prob |
a vector of probability weights for obtaining the elements of the vector being sampled. |
A vector of length size
with an increasingly sorted sample
of integers between 1
and n
.
Dominik Mueller
1 | sorted_sample_int(10L, 5L)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.