add_sampled_times: Function to add the sampled times for transmission pairs

View source: R/summary_utils.R

add_sampled_timesR Documentation

Function to add the sampled times for transmission pairs

Description

Function to add the sampled times for transmission pairs

Usage

add_sampled_times(df1, sampled_times)

Arguments

df1

dataframe containing information of transmission pairs.

sampled_times

dataframe containing information of sampled times for IDs in df1.

Details

This function will adataframe composed of a single row and check whether it represents a transmission pair (independent of A transmitted to B or B transmitted to A). If it is a transmision pair will add to the dataframe the sampled times of infected and susceptible individuals. If not a transmission pair, than the value of NA will be added to the dataframe.

Value

dataframe with added information of the sampled times for donor (infected individual) and recipient (susceptible individual).


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