Last chance! 50% off unlimited learning
Sale ends in
Availability information for election programmes
mp_availability(ids, apikey = NULL, cache = TRUE)
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.frame
) as returned by mp_metadata
.
Alternatively, ids can be a logical expression specifying a subset of
the Manifesto Project's main dataset. It will be evaluated within the
data.frame returned by mp_maindataset
such that all its
variables and functions thereof can be used in the expression.
API key to use. Defaults to NULL
, resulting in using
the API key set via mp_setapikey
.
Boolean flag indicating whether to use locally cached data if available.
an object of class ManifestoAvailability
containing availability information. Can be treated as a
data.frame
and contains detailed availability information
per document
# NOT RUN {
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