to_gw_system: Merge a dataset with country and date info with the...

Description Usage Arguments Value Examples

Description

Merge a dataset with country and date info with the Gleditsch-Ward system of states

Usage

1
2
to_gw_system(data, country_col = "country", date_col = "year",
  match_on = "overlap", include_extras = TRUE)

Arguments

data
country_col
date_col

Value

a dataset merged with the Gleditsch-Ward system of states gw_system

Examples

1
2
3
library(dplyr)
data <- bmr %>% select(bmr_country, bmr_ccode, year, democracy) %>% filter(grepl("YUG|SERBIA",bmr_country))
to_gw_system(data, "bmr_country", "year")

xmarquez/PoliticalDatasets documentation built on May 4, 2019, 1:24 p.m.