sample_vec: Custom function to sample from integers

View source: R/sample_vec.R

sample_vecR Documentation

Custom function to sample from integers

Description

Used in simulate_animal and simulate_groups function to avoid issues when there are only two groups and animals_other_groups is a length 1 integer

Usage

sample_vec(x, ...)

Arguments

x

one or more integers to sample from


gavincotterill/modulr documentation built on Nov. 30, 2022, 11:15 p.m.