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

Description Usage Arguments Value References Examples

View source: R/contact_countries.R

Description

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

Usage

1
2
3
4
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:

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

Examples

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

contactdata documentation built on Feb. 19, 2021, 9:06 a.m.