create_statedays: Create state-days from state system membership data
Description
create_statedays() allows you to create state-day data from
either the Correlates of War (CoW) state system membership data or the
Gleditsch-Ward (gw) system membership data. The function leans on internal
data provided in the package.
Usage
create_statedays(system = "cow", mry = TRUE)
Value
create_statedays() takes state system membership data provided
by either Correlates of War or Gleditsch-Ward and returns a simple state-day
data frame. The Gleditsch-Ward state days include the indicator communicating
whether the state is a microstate.
Arguments
system
a character specifying whether the user wants Correlates of War
state-years ("cow") or Gleditsch-Ward ("gw") state-years. Correlates of War
is the default.
mry
optional, defaults to TRUE. If TRUE, the function extends the
script beyond the most recent system membership updates to include observation
to the most recently concluded calendar year. For example, the Gleditsch-Ward
data extend to the end of 2020. When mry == TRUE, the function returns
more recent years (e.g. 2018, 2019) under the assumption that states alive
at the end of 2016 or 2020 are still alive today. Use with some care.
Author
Steven V. Miller
Details
The function leans on data made available in the isard package.
# \donttest{# CoW is default, will include years beyond 2016 (most recent CoW update)create_statedays()
# Gleditsch-Ward, include most recent yearscreate_statedays(system="gw")
# }