add_cow_mids | R Documentation |
add_cow_mids()
merges in CoW's MID data to a dyad-year data frame.
The version of the CoW-MID data in this package is version 5.0.
add_cow_mids(data, keep)
data |
a dyad-year data frame (either "directed" or "non-directed") |
keep |
an optional parameter, specified as a character vector, passed to the function in a If |
Dyads are capable of having multiple disputes in a given year, which can create a problem for merging into a complete dyad-year data frame. Consider the case of France and Italy in 1860, which had three separate dispute onsets that year (MID#0112, MID#0113, MID#0306), as illustrative of the problem. This merging process employs several rules to whittle down these duplicate dyad-years for merging into a dyad-year data frame.
The function will also return a message to the user about the case-exclusion rules that went into this process. Users who are interested in implementing their own case-exclusion rules should look up the "whittle" class of functions also provided in this package.
add_cow_mids()
takes a dyad-year data frame and adds dyad-year dispute information
from the CoW-MID data.
Steven V. Miller
Palmer, Glenn, and Roseanne W. McManus and Vito D'Orazio and Michael R. Kenwick and Mikaela Karstens and Chase Bloch and Nick Dietrich and Kayla Kahn and Kellan Ritter and Michael J. Soules. 2021. "The MID5 Dataset, 2011–2014: Procedures, coding rules, and description" Conflict Management and Peace Science.
# just call `library(tidyverse)` at the top of the your script
library(magrittr)
cow_ddy %>% add_cow_mids()
# keep just the dispute number and Side A/B identifiers
cow_ddy %>% add_cow_mids(keep=c("dispnum","sidea1", "sidea2"))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.