Learn R Programming

socialmixr (version 0.1.4)

survey_countries: List all countries contained in a survey

Description

List all countries contained in a survey

Usage

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

Arguments

survey

a DOI (see list_surveys), or a numerical id (corresponding to the numbers returned in the id column returned by list_surveys), or a character vector of file names, or a survey object (in which case only cleaning is done).

country.column

column in the survey indicating the country

...

further arguments for get_survey

Value

list of countries

Examples

Run this code
# NOT RUN {
data(polymod)
survey_countries(polymod)
# }

Run the code above in your browser using DataLab