pickRandom: Select random elements based on a criteria

View source: R/bioSpecific.R

pickRandomR Documentation

Select random elements based on a criteria

Description

Select random elements based on a criteria

Usage

pickRandom(
  labels,
  allValues,
  tolerance,
  allowSelf = TRUE,
  invalids = c(),
  n = 500
)

Arguments

labels

Character vector. Labels to randomize

allValues

Named numeric vector. Randomization candidates

tolerance

Percentage tolerance for randomization

allowSelf

Logical, is self a viable candidate for randomization

invalids

Specific cases to exclude from randomization

n

How many times randomization should happen


oganm/ogbox documentation built on Feb. 18, 2024, 12:37 a.m.