View source: R/summary_utils.R
add_sampled_times | R Documentation |
Function to add the sampled times for transmission pairs
add_sampled_times(df1, sampled_times)
df1 |
dataframe containing information of transmission pairs. |
sampled_times |
dataframe containing information of sampled times for IDs in df1. |
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.
dataframe with added information of the sampled times for donor (infected individual) and recipient (susceptible individual).
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.