Movatterモバイル変換
[0]ホーム
states 0.3.3
- Fixes an issue with testing
plot_missing() with thefutureggplot2 release (#28).
states 0.3.2
Several small fixes.
Bug fixes
- Manually add a “states-packge” alias for the package doc sinceroxygen2 does not do this by default anymore.
- Switch from the deprecated
ggplot2::aes_string() toggplot2::aes() + the.data pronoun inplot_missing(). - Fix adplyr join warning in
state_panel() due to the new “relationship” argument. - Update old URLs in README and other documentation.
states 0.3.1
- Stripreadr “spec” attribute from thecowstates andgwstates data. They are both now plaindata frames with no attributes. (#22)
- Expand list of short country names in
prettyc(),e.g. instead of “Belarus (Byelorussia)”, just “Belarus”. - Move totestthat 3rd edition(3e).
Bug fixes
all.equal() in R 4.1.x (R-devel at this point) willcheck environments for equivalence as well. This breaks one test since2etestthat relies onall.equal() forexpect_equal(). Moving to testthat 3e fixes this bug.(#26)
states 0.3.0
- Although the original COW state list does not distinguishmicro-states, like the G&W list does, the
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 astate panel dataset. - In the gwstates and cowstates data, the “iso3c” columns have beenrenamed to “gwn” and “cown”, as they are not in fact ISO 3-charactercountry abbreviations (#19).
- plot_missing()’s “space” argument has been renamed “ccode”.
- id_date_sequence() now works with integer years, there is no need toconvert them to Date class anymore (#20).
Improved support forstate_panel shortcuts
state_panel() has further improved support for inputshortcuts (#3):
- Accepted formats for the “start” and “end” arguments now include2006, “2006”, “2000-06”, and “2006-06-01”. See
parse_date()for details. - The implied time period is now also inferred from shortcut inputwhen “by” is left at the new default of NULL.
- The “partial” option has gained new “first” and “last” values thatalso support shortcut input. Previously a shortcut input like 2006 couldonly be used with the “any” partial option, and to get country-years forstates that were independent on the first day of a year one had to use
state_panel("YYYY-01-01", partial = "exact", ...). This cannow instead be done withstate_panel(2006, partial = "first", ...).
New functions
- Added
country_names() to translate country codes tocountry names andprettyc() to shorten some of the longercountry names, like “Macedonia, the former Yugoslav Republic of”. - Updated vignette on G&W and COW differences to take into accountwhen trying to translate between codes.
- Added
compare() helper to compare two statelist dataframes prior to merging. - Added
parse_date() to handle more flexible “start” and“end” date input (#12).
Bug fixes
- fixed a misspelled country name, “Rumania” to “Romania”
states 0.2.2
- Added option to use simpler input when generating a yearly panel,i.e.
state_panel(2001, 2005) instead ofstate_panel("2001-01-01", "2005-01-01", by = "year", partial = "any"). - Changed sfind() so that it ignores capitalization and treatscharacter numbers as numbers. These pairs of queries now produce thesame results, unlike before:
- “Gabon” and “gabon”,
- 260 and “260”
- Changes in plot_missing() and missing_info():
- make “data” the first argument and “x” the second argument so thatit works nicer in pipes.
- add more intelligent defaults so that not all arguments have to beexplicitly specified.
- rename the “time_unit” argument to “period”.
- added “partial” argument, it works the same as in
state_panel().
- Fixed plot_missing() and missing_info() error when “data” is atibble (“tbl_df”).
states 0.2.1
plot_missing improvements: examples with Polity data,added askip_labels option that will plot every n-th labelfor countries instead of all labels to avoid overplotting on the y-axis.The latter is inspired by https://github.com/xuyiqing/panelView.- Added Polity combined score as example data set.
- Fixed encoding issue for
gwstates$country_names likeCote d’Ivoire and Wüttemberg.
states 0.2.0
- Initial version on CRAN.
- Refactor
state_panel and add a partial option to allowincluding partial state-periods (as opposed to the default which isbased on the exact start date, for all period resolutions in “by”). - Rework
plot_missing: fix a bug that would leave outindependent states with no cases in the input data; addmissing_info function that generates the data underlyingthe plots. - Add
pkgdown website forstates packagedocumentation.
states 0.1.0
- Initial version on Github.
- Added a
NEWS.md file to track changes to thepackage.
[8]ページ先頭