get_origin_at_samplingTime: Get origin at time of sampling

View source: R/sampling_utils.R

get_origin_at_samplingTimeR Documentation

Get origin at time of sampling

Description

Get the origin code at time of sampling.

Usage

get_origin_at_samplingTime(tm, origin, sid, st)

Arguments

tm

Transmission matrix of who transmitted to whom.

origin

Dataframe of IDs that migrated during the simulation and time time that migration happened. Time must be in decimal year.

sid

sampled ID

st

sampled time

Value

Character of code for migrant (to determine if individual is from region or global).


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