
Get survey country population data
Source:R/survey-country-population.R
survey_country_population.Rdsurvey_country_population() is defunct alongside wpp_age(), which it
wrapped. Construct a data.frame with columns lower.age.limit and
population from a current source (e.g. the wpp2024 package from GitHub)
and pass it to contact_matrix() via the survey_pop argument instead.
Arguments
- survey
A
survey()object, with column "country" in "participants".- countries
Optional. A character vector of country names. If specified, this will be used instead of the potential "country" column in "participants".