sample_within_range: Sample from range

View source: R/sample_within_range.R

sample_within_rangeR Documentation

Sample from range

Description

Creates a uniformly-distributed sample from a 2-length vector

Usage

sample_within_range(rg, sample_size = NULL, seed = NULL)

Arguments

rg

a "range"-class vector

sample_size

the size of the sample to be generated

seed

pseudo-random number generator seed

Value

A vector containing the generated sample

Note

This function was created primarily to be used to expand an object with the "range" class.


lsasim documentation built on Aug. 22, 2023, 5:09 p.m.