Learn R Programming

socialmixr (version 0.7.0)

survey_countries: List all countries contained in a survey

Description

[Defunct]

Usage

survey_countries(survey, country.column = "country", ...)

Value

Always errors.

Arguments

survey

a DOI or url to get the survey from, or a survey() object.

country.column

column in the survey indicating the country

...

further arguments for get_survey()

Details

survey_countries() is defunct. Use contactsurveys::download_survey() and load_survey() and then explore the country column yourself.

Examples

Run this code
if (FALSE) {
data(polymod)
survey_countries(polymod)
}
## --> we now recommend
if (FALSE) {
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)
}

Run the code above in your browser using DataLab