load_pf_external: Helper to load wide version of PartyFacts external data

View source: R/load_pf_wide.R

load_pf_externalR Documentation

Helper to load wide version of PartyFacts external data

Description

Helper to load wide version of PartyFacts external data

Usage

load_pf_external(countries = NULL, keep_sources = NULL)

Arguments

countries

A character vector of VDEM country codes.

keep_sources

A character vector of dataset names included in PartyFacts external data. These include: "manifesto", "parlgov", "wikipedia", "ches", "clea", "ejpr", "vparty", "chisols", "dpi", "essprtc", "essprtv", "huber", "kitschelt", "polcon", "ppmd", "whogov", "wvs", "afrelec", "afro", "ccdd", "ccs", "coppedge", "cses", "elecglob", "epac", "hix", "erdda", "euandi", "gloelec", "gpd", "gps", "ipod", "janda", "jw", "kurep", "laeda", "latino", "laverhunt", "leadglob", "mackie", "mapp", "morgan", "mudde", "nped", "parlspeech", "postyug", "pip", "poppa", "ppdb", "ppla", "ppmdall", "ray", "tap", "populist", "voteview", "ees14", "ppepe", "thomas"

Note: source data are matched with a regex, so "manif" works just like "manifesto", and "manifesto|parlg" returns both data from Manifesto and ParlGov datasets.

Value

A tibble with PartyFacts data for the countries and datasets of interest.

Examples


library(partymakeR)

## Not run: 

# Define countries of interest
countries <- c("AFG", "AIA")

# Load data
dat_pf_external <- load_pf_external(countries = countries, keep_sources = "manifesto")
dat_pf_external


## End(Not run)


RobertoValli/partymakeR documentation built on June 15, 2022, 2:12 p.m.