get_n_alive_group | R Documentation |
Given the antibody_data data frame with entries for location, calculates the number that are alive (alive to be infected, that is) for each time in times by location
get_n_alive_group(antibody_data, times, demographics = NULL, melt_data = FALSE)
antibody_data |
the data frame of antibody data. See |
times |
the vector of times to calculate number alive for |
melt_data |
if TRUE, returns a melted data frame. Returns a wide matrix otherwise. |
a matrix giving the number alive in each time point in each location
Other get_summary:
get_DOBs()
,
get_n_alive()
data(example_antibody_data)
data(example_antigenic_map)
times <- unique(example_antigenic_map$inf_times)
get_n_alive_group(example_antibody_data, times)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.