Learn R Programming

politicaldata (version 0.1.3)

cap_get_mip: Download the Comparative Agenda Project's dataset of responses to Gallup's Most Important Problem question, coded by CAP major topic

Description

From CAP: > This dataset contains responses to Gallup's Most Important Problem question aggregated at the annual level and coded by major topic. Years with missing observations (1953/1955) are those in which there were no corresponding MIP data available. Contact us for quarterly MIP data if needed.

Usage

cap_get_mip(min_year = NULL, max_year = NULL)

Arguments

min_year

Returns data starting at this year

max_year

Returns data up to this year

Value

a data.frame of CAP's most important problem data

See Also

The master codebook and datasets at https://www.comparativeagendas.net/datasets_codebooks

Examples

Run this code
# NOT RUN {

# pull the Most Important Problem data for every year since 1980
mip <- cap_get_mip(min_year = 1980)

# pull the MIP data for every year between 1950 and 1970
mip <- cap_get_mip(min_year = 1950, max_year = 1970)

# pull the MIP Data for every year until 2010
mip <- cap_get_mip(max_year = 2010)


# }

Run the code above in your browser using DataLab