| survey_countries | R Documentation |
survey_countries(survey, country.column = "country", ...)
survey |
a DOI or url to get the survey from, or a |
country.column |
column in the survey indicating the country |
... |
further arguments for |
survey_countries() has been deprecated in favour of using
contactsurveys::download_survey(), and load_survey(), and then
exploring the country column yourself.
list of countries
data(polymod)
survey_countries(polymod)
## --> we now recommend
## Not run:
doi_peru <- "10.5281/zenodo.1095664" # nolint
# download the data with the contactsurveys package
peru_survey <- contactsurveys::download_survey(doi_peru)
# load the survey with socialmixr
peru_data <- socialmixr::load_survey(peru_survey)
# find the unique country - assuming your data has a "country" column:
unique(peru_data$participants$country)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.