View source: R/sample_within_range.R
sample_within_range | R Documentation |
Creates a uniformly-distributed sample from a 2-length vector
sample_within_range(rg, sample_size = NULL, seed = NULL)
rg |
a "range"-class vector |
sample_size |
the size of the sample to be generated |
seed |
pseudo-random number generator seed |
A vector containing the generated sample
This function was created primarily to be used to expand an object with the "range" class.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.