contact_df_countries: Get a data.frame (in long format) of contact data for...

View source: R/contact_countries.R

contact_df_countriesR Documentation

Get a data.frame (in long format) of contact data for multiple countries

Description

Get a data.frame (in long format) of contact data for multiple countries

Usage

contact_df_countries(countries, ...)

Arguments

countries

A character string or a vector of character containing the names of the countries for which to return contact data

...

Arguments passed to contact_matrix()

Value

A data.frame (in long format) with 4 columns:

  • country: the country name

  • age_from: the age group of individual

  • age_to: the age group of contact

  • contact: the intensity of contact

References

Kiesha Prem, Alex R. Cook, Mark Jit, Projecting social contact matrices in 152 countries using contact surveys and demographic data, PLoS Comp. Biol. (2017), \Sexpr[results=rd]{tools:::Rd_expr_doi("10.1371/journal.pcbi.1005697")}

Kiesha Prem, Kevin van Zandvoort, Petra Klepac, Rosalind M. Eggo, Nicholas G. Davies, CMMID COVID-19 Working Group, Alex R. Cook, Mark Jit, Projecting contact matrices in 177 geographical regions: An update and comparison with empirical data for the COVID-19 era, PLoS Comp. Biol. (2021), \Sexpr[results=rd]{tools:::Rd_expr_doi("10.1371/journal.pcbi.1009098")}.

Examples

contact_df_countries(c("Austria", "Belgium"), location = "all")


contactdata documentation built on April 1, 2023, 12:06 a.m.