prettyc(), e.g. instead of "Belarus (Byelorussia)", just "Belarus".
all.equal()in R 4.1.x (R-devel at this point) will check environments for equivalence as well. This breaks one test since 2e testthat relies on
expect_equal(). Moving to testthat 3e fixes this bug. (#26)
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() has further improved support for input shortcuts (#3):
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.
NEWS.mdfile to track changes to the package.
Any scripts or data that you put into this service are public.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.