This function takes a given infection ('S','E','I','R') status and returns a summary trajectory

base_summarize_humans(out, infState)

Arguments

out

the output of sim_trajectory_R

infState

type of humans to summarize: 'S','E','I','R'

Value

a 4 to 6 column dataframe for plotting with ggplot2

Details

This function is the base function for summarize_humans_epiSIS, summarize_humans_epiSEIR.

The return object depends on the data provided. If the simulation was only 1 node, then no node designation is returned. If only one repetition was performed, no rep designation is returned. Columns always returned include: time, inf, genotype, and value.