Description Usage Arguments Value
View source: R/01_contact_matrix.R
get_contact_matrix
wrapper function that allows user to
subset data from various sources.
If only county is specified (other parameters = ""), it provides national
level data.
If county is also specified (and the dataset contains counties), then only
those counties within the state(s) are returned.
1 2 3 4 5 6 7 8 9 10 | get_contact_matrix(
v_init_age_grps = c(0, 5, 15, 25, 45, 55, 65, 70),
country = "",
state = "",
county = "",
src_country = "",
density = "",
v_custom_prop_pop = "",
recache = FALSE
)
|
v_init_age_grps |
Vector that specifies the age bins to aggregate and return. |
country |
Country of desired data. |
state |
State of desired data. |
county |
County of desired data. |
src_country |
Country to use for contact matrix structure if country is not in data.frame. |
density |
Population density of country/state/county. |
v_custom_prop_pop |
Vector that specifies the proportion of total population for each age group. |
recache |
Flag (default is FALSE) of whether to run function and replace existing cache. If FALSE, will check for cache and use if cached matrix exists. |
A list with overall and setting specific contact matrices.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.