mp_parties: Access to the Parties Lists for the Manifesto Project Data

View source: R/parties.R

mp_partiesR Documentation

Access to the Parties Lists for the Manifesto Project Data

Description

These functions provide access to machine-readable versions of the List of Parties of the Manifesto Project Data as can be found in CSV form under https://manifesto-project.wzb.eu/datasets . Note: the list of parties is not available for all of the past datasets. You can check the availability by going to the datasets page and check for specific datasets whether they have party lists in the following formats "List – Short (CSV)" or "List – Long (CSV)" available. There you can also find the codebooks with details for these list of parties.

Usage

mp_parties(
  version = "current",
  apikey = NULL,
  cache = TRUE,
  list_form = "short"
)

Arguments

version

version of the Manifesto Project Main Dataset for which the list of parties is requested. Note: the list of parties is not available for all of the past datasets. Defaults to "current", which fetches the most recent version. Must be formatted as e.g. "MPDS2023a".

apikey

API key to use. Defaults to NULL, resulting in using the API key set via mp_setapikey.

cache

Whether result of API call should be cached locally (defaults to TRUE)

list_form

Whether the result should be the short or the long version (defaults to "short")

Details

mp_parties returns the list of parties as a tibble, ideal for further automatic processing.


manifestoR documentation built on May 29, 2024, 6:02 a.m.