View source: R/party_crosswalk.R
| party_crosswalk | R Documentation |
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.
party_crosswalk(party_gerda, destination)
party_gerda |
A character vector containing the GERDA party names to be converted. |
destination |
A single string naming the target column. Available destinations:
|
A vector of the same length as party_gerda with the mapped values.
party_crosswalk(c("cdu", "spd", "linke_pds", NA), "left_right")
party_crosswalk(c("cdu", "afd"), "family_name_short")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.