get_newids: Get a sampled ID (sid) and vector of IDs to sample from

View source: R/sampling_utils.R

get_newidsR Documentation

Get a sampled ID (sid) and vector of IDs to sample from

Description

Get a sampled ID (sid) and vector of IDs to sample from

Usage

get_newids(ids)

Arguments

ids

Vector of ids to sample from

Details

This function will get a vector of IDs to sample from and randomly sample an ID. If there is only one element in ids, then sid will be equal to ids.

Value

One element for sampled ID (ID).

See Also

sample for more information on random samples.


thednainus/HIVepisimAnalysis documentation built on Sept. 21, 2023, 7:32 a.m.