Learn R Programming

manifestoR (version 1.0-4)

mp_availability: Availability information for election programmes

Description

Availability information for election programmes

Usage

mp_availability(ids, apikey = NULL, cache = TRUE)

Arguments

ids
Information on which documents to get. This can either be a list of partys (as ids) and dates of elections as given to mp_metadata or a ManifestoMetadata object (data.fram
apikey
API key to use. Defaults to NULL, resulting in using the API key set via mp_setapikey.
cache
Boolean flag indicating whether to use locally cached data if available.

Value

  • an object of class ManifestoAvailability containing availability information. Accessing $availability on it gives a data.frame with detailed availability information per document

Examples

Run this code
mp_availability(countryname == "New Zealand")

wanted <- data.frame(party=c(41320, 41320), date=c(200909, 200509))
mp_availability(wanted)

Run the code above in your browser using DataLab