Several small fixes.
state_panel()due to the new “relationship” argument.
cowstatesdata now has a microstates coding derived from the G&W coding (#24). This makes it easier, for example, to filter out micro-states from a state panel dataset.
state_panel("YYYY-01-01", partial = "exact", ...). This can now instead be done with
state_panel(2006, partial = "first", ...).
country_names()to translate country codes to country names and
prettyc()to shorten some of the longer country names, like “Macedonia, the former Yugoslav Republic of”.
compare()helper to compare two statelist data frames prior to merging.
parse_date()to handle more flexible “start” and “end” date input (#12).
state_panel(2001, 2005)instead of
state_panel("2001-01-01", "2005-01-01", by = "year", partial = "any").
plot_missingimprovements: examples with Polity data, added a
skip_labelsoption that will plot every n-th label for countries instead of all labels to avoid overplotting on the y-axis. The latter is inspired by https://github.com/xuyiqing/panelView.
gwstates$country_nameslike Cote d’Ivoire and Wüttemberg.
state_paneland add a partial option to allow including partial state-periods (as opposed to the default which is based on the exact start date, for all period resolutions in “by”).
plot_missing: fix a bug that would leave out independent states with no cases in the input data; add
missing_infofunction that generates the data underlying the plots.