party_crosswalk: Map GERDA Party Names to ParlGov Attributes

View source: R/party_crosswalk.R

party_crosswalkR Documentation

Map GERDA Party Names to ParlGov Attributes

Description

Creates a crosswalk between GERDA party names and ParlGov's view_party attributes. If a party name is not found, the corresponding output element is NA. This function expects GERDA party names (lowercase, underscores); other naming schemes will mostly return NA.

Usage

party_crosswalk(party_gerda, destination)

Arguments

party_gerda

A character vector containing the GERDA party names to be converted.

destination

A single string naming the target column. Available destinations:

  • Names: party_name, party_name_ascii, party_name_short, party_name_english

  • Party family: family_name, family_name_short

  • Ideology scales (ParlGov): left_right, state_market, liberty_authority, eu_anti_pro

  • External ideology scores: cmp, euprofiler, ees, castles_mair, huber_inglehart, ray, benoit_laver, chess

  • Identifiers: country_id, party_id, family_id

Value

A vector of the same length as party_gerda with the mapped values.

Examples

party_crosswalk(c("cdu", "spd", "linke_pds", NA), "left_right")
party_crosswalk(c("cdu", "afd"), "family_name_short")


gerda documentation built on July 27, 2026, 5:09 p.m.