contactdata (version 0.1)

contact_df_countries: 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,
  location = c("all", "home", "school", "work", "other")
)

Arguments

countries

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

location

Character. One of "all", "home", "school", "work" or "other".

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), 10.1371/journal.pcbi.1005697

Examples

Run this code
# NOT RUN {
contact_df_countries(c("Austria", "Belgium"), location = "all")

# }

Run the code above in your browser using DataLab