Learn R Programming

peacesciencer (version 0.5.0)

add_cow_alliance: Add Correlates of War alliance data to a dyad-year data frame

Description

add_cow_alliance() allows you to add Correlates of War alliance data to a dyad-year data frame

Usage

add_cow_alliance(data)

Arguments

data

a dyad-year data frame (either "directed" or "non-directed")

Value

add_cow_alliance() takes a dyad-year data frame and adds information about the alliance pledge in that given dyad-year. These include whether there was an alliance with a defense pledge, neutrality pledge, non-aggression pledge, or pledge for consultation in time of crisis (entente).

Details

Duplicates in the original directed dyad-year alliance data were pre-processed. Check cow_alliance for more information.

References

Gibler, Douglas M. 2009. International Military Alliances, 1648-2008. Congressional Quarterly Press.

Examples

Run this code
# NOT RUN {
# just call `library(tidyverse)` at the top of the your script
library(magrittr)

cow_ddy %>% add_cow_alliance()

# }

Run the code above in your browser using DataLab