Learn R Programming

manifestoR (version 1.0-4)

mp_metadata: Get meta data for election programmes

Description

Get meta data for election programmes

Usage

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

Arguments

ids
list of partys (as ids) and dates of elections, paired. Dates must be given either in the date or the edate variable, formatted in the way they are in the main data set in this package (date: as.numeric, YYYYMM, edate
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 ManifestoMetadata, subclassing data.frame as well as tbl_df and containing the requested metadata in rows per election programme

Details

Meta data contain information on the available documents for a given party and election date. This information comprises links to the text as well as original documents if available, language, versions checksums and more.

Examples

Run this code
mp_metadata(party == 21221)

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

Run the code above in your browser using DataLab