measure_get_measures_by_year_state {votesmart}R Documentation

Get a dataframe of ballot measures by year and state

Description

More information about these ballot measures can be found using the measure_get_measures function.

Usage

measure_get_measures_by_year_state(
  years = lubridate::year(lubridate::today()),
  state_ids = state.abb,
  all = TRUE,
  verbose = TRUE
)

Arguments

years

A vector of election years.

state_ids

A vector of state abbreviations.

all

Boolean: should all possible combinations of the variables be searched for, or just the exact combination of them in the order they are supplied?

verbose

Should cases when no data is available be messaged?

Value

A dataframe of ballot measures and their attributes. If a given year + state_id returns no data, that row will be filled with NAs.

Examples

## Not run: 
measure_get_measures_by_year_state(years = c(2016, 2018), state_ids = c("MO", "IL", "VT"))

## End(Not run)

[Package votesmart version 0.1.2 Index]