gnevar 0.0.8

2019-07-12

Package

  • Updated imports in DESCRIPTION file
  • Changed required packages in CI/Docker to reflect current imports

Data

  • Downloaded additional treaty texts from ECOLEX for eco_agree
  • Made iea_agree, eco_agree, and tfd_agree scripts more efficient, using new code_ functions introduced below
  • Corrected termination date for IEA-2816 from “1972-12-31” to “1973-12-31”

Functions

  • Renamed pop() to code_parties()
  • Now outputs ISO 3166 alpha-3 codes instead of short names
  • No longer relies on countrycode package
  • Includes regex for historical and micro states
  • Data now kept internally in sysdata.rda
  • Now appends codes with underscores
  • Added code_location() to code Location variable, currently relies on “Signed In” syntax
  • Added code_subjects() to code ESA variables
  • Added code_areas() to code Area components of lineage
  • Added code_targets() to code Target components of lineage
  • Added code_document() to code D variable
  • Added code_languages() to standardise Languages variable
  • Data kept internally in sysdata.rda
  • Appends codes with underscores
  • Added lingua() to translate strings to English
  • This function caches previous translations to avoid overloading the server and accelerate script running time
  • Added resequence() to filter and resort dates across multiple columns of a data frame
  • Fixed bug related to unspecified mapping in transmutate() that could result in a conflict with maps::map()

gnevar 0.0.7

2019-06-24

Package

  • Added how to use Git, Bitbucket and Sourcetree sections to CONTRIBUTING
  • Added vignettes on ESA and LJD codes
  • Some restructuring of documentation for the website
  • Added CircleCI for continuous integration
  • Uses devtools::test() to run all testthat tests
  • Uses covr::codecov() to check code coverage
  • CircleCI and Codecov badges added to README
  • From now on will use git branching model

Data

  • Added missing ratification procedures to stat_actor
  • Added missing area/region codes to stat_actor
  • Fixed error in Columbian Congress ratification in stat_actor
  • Added missing LJD codes to trad_agree
  • Added missing dates to trad_agree
  • Removed inconsistent actor codes across _agree and _membs
  • Rewrite of trad_membs processing and documentation
  • Fixed Auto Products and Czech Republic terminations in trad_membs
  • Testing for missing data in IDs and core dates, not yet LJD codes
  • Reconciled some inconsistent dates in envr_agree
  • Added link to vignettes from watr_agree and watr_membs data help files
  • Now exporting cleaned source data:
  • iea_agree and iea_membs, eco_agree and eco_membs, and tfd_agree and tfd_membs
  • Now available through data(package = “gnevar”)

Functions

  • Added pop() function for extracting country parties from (treaty title) character vectors

gnevar 0.0.6

2019-02-02

Package

  • Added CONTRIBUTING file, with guidance on how to contribute by identifying issues, fixing bugs (with guidance on commit syntax), and writing documentation
  • Added CODE_OF_CONDUCT file
  • Changed license to CC0
  • Changed package logo to original clock-face
  • Added separate index.Rmd/.md files for displaying website logo

Data

  • Source data now cleaned in separate scripts
  • Moved to Beg/End syntax instead of Start/End (this may break some scripts)
  • Added additional stat_actor information
  • Added many capitals where information missing, locating historical capitals close to modern cities where necessary
  • Added new state_actor episodes for capital changes
  • Added Beth Simmons’ ratification coding to stat_actor
  • Reconciled conflicting begin/end dates for state_actor episodes
  • Identified earlier Beg dates before 1816-01-01 where possible
  • Rewrite of envr_agree, envr_membs, and their documentation
  • Issues with subject identification fixed
  • Plausible dates identified
  • Moved to Beg/End syntax
  • Rewrite of ally_agree, ally_membs, and their documentation
  • Moved to Beg/End syntax
  • Rewrite of trad_agree, trad_membs, and their documentation
  • Improperly formatted end dates fixed
  • Moved to Beg/End syntax
  • Added testthat unit tests for data
  • Trialled validate package too
  • Added testthat helper files for data tests
  • Deleted revise() and relate() as no longer necessary
  • Added vignettes
  • states vignette gives information on date coding rules and ratification practices
  • agrees vignette gives information on treaty sources and some on LJD coding
  • water vignette gives initial descriptives on water agreements, as subject vignette example

Functions

  • Renamed refuse() to reunite() to consolidate duplicate data
  • Like tidyr::unite() allows vectorisation and usage with dplyr::mutate()
  • Added recollect() for similar usage with dplyr::summarise(), but not yet used internally
  • Changed recent() so that it cleverly recognises different separators, probable year, and year, month, day ordering and returns consistent results
  • Extended repaint() to multiple variables
  • Changed snap() to deal with new Beg/End syntax and missing values correctly
  • Added interleave() to intersperse two vectors or a vector and a set of missing values together
  • Added enum(), a convenience wrapper around format() and nrow() that cleverly reports for different object types
  • Changed overlaps() to produce a grouped vector based on identical ID and overlapping episodic durations
  • For use with dplyr::group_by() and dplyr::summarise()
  • Removed squish() as unnecessary with new overlaps() usage
  • Added testthat unit tests for functions
  • Added expect_consist() internally as a less verbose expect_match()

gnevar 0.0.5

2019-01-06

Package

  • Separate index page for website
  • Added search functionality to website
  • Added main gnevar vignette
  • Added Venn diagram for envr_membs

Data

  • Exported ljd_codings, envr-codings, and stat_codings to own scripts that are sourced as necessary
  • Used stringdist::stringdistmatrix() to consolidate similar treaties by title, after extracting similarities due to iterations (amendments, etc.)
  • Added (more) documentation for stat_actor, envr_agree, fish_agree, envr_membs, fish_membs, and watr_membs
  • Added capital-based coordinates for stat_actor
  • Added iea_membs from IEADB to envr_membs
  • Added eco_membs from ECOLEX to envr_membs
  • Added tfd_membs from the Transboundary Freshwater Disputes Database (TFDD) to envr_membs
  • Rationalised envr_membs signature dates
  • Rationalised envr_membs ratification dates
  • Rationalised envr_membs entry into force dates
  • Rationalised envr_membs termination dates
  • Subset envr_membs into fish_membs and watr_membs

Wrangling

gnevar 0.0.4

2018-12-20

Package

  • Added hex sticker/logo
  • Added contributors to DESCRIPTION
  • README now reproducible, includes data dimensions and list of wrangling functions
  • Added more informative function titles
  • Pkgdown exports to https://jhollway.bitbucket.io/gnevar/

Data

  • Changed to dplyr::mutate() based code
  • Using cld2::detect_language() to detect language of treaty titles and texts
  • Using googleLanguageR::gl_translate() to translate treaty titles and texts
  • Added capital-based coordinates for stat_actor
  • Added tfd_agree from the Transboundary Freshwater Disputes Database (TFDD) to envr_agree
  • Added many iea_agree treaty texts to envr_agree
  • Subset envr_agree into fish_agree and watr_agree
  • Moved envr_refer related code
  • Updated ally_agree with ATOP v4.01

Wrangling

  • Added recent() to reset the century of (unlikely) future dates
  • Added revise() to check for inconsistencies within data, includes _present, _missing, and _consistent checks
  • Added moveMe() to move variables relative to named other variables
  • Added refuse() to append variables (vectorised, for use with dplyr::mutate() etc)
  • Added transmutate() to drop mutated variables without losing other variables in data frame
  • Updated entitle() to trim leading and trailing white space
  • Renamed slice() to snap() to avoid dplyr::slice() conflicts

gnevar 0.0.3

2018-11-20

Data

  • Established LJD codes for envr_agree
  • Established subject codes for envr_agree
  • Consolidated envr_agree using new wrangling functions
  • Added gva_membs to envr_membs, and settled some dates

Wrangling

  • Added repose() to set observations to 1 if any supplied vectors true
  • Added retire() to set obesrvations to maximum or minimum based on supplied vectors
  • Added regime() to set observations from supplied vectors according to a given hierarchy
  • Added rejoin() to append all non-missing observations into a single vector

gnevar 0.0.2

2018-08-31

Package

  • Added temporal plot summarising stat_actor
  • Added missings plots for iea_agree, eco_agree, and envr_agree

Data

  • Trimmed some duplications in stat_actor
  • Added own trade agreement data to trad_agree and trad_membs and tidied up
  • Standardised and tidied up envr_agree and envr_membs
  • Standardised ally_agree and ally_membs
  • Updated envr_agree with eco_agree scraped from ECOLEX

Wrangling

  • Added repaint() to fill in missing information by lookup
  • Added recurse() to fill in missing information recursively
  • Added slice() to extract affiliation matrix for a given year, node sets, and edge list
  • Added remove() to remove variables by name
  • Added entitle() to capitalise titles

gnevar 0.0.1

2018-08-14

Package

  • Initialised package from old GFG/GENG data
  • Added README.md file with instructions on how to install package
  • Added LICENSE file and pointed to bug/issue tracker
  • Added a NEWS.md file to track changes to the package
  • Created testthat structure for the package
  • Added daff (data diff) and comparative graphs to README

Data

  • Added raw International Environmental Agreements (IEA) data for envr_agree
  • Added initial data processing for envr_agree
  • Added isd_actor data from International System(s) Dataset (ISD) to stat_actor
  • Added atop_agree data from Alliance Treaty Obligations and Provisions (ATOP) v3.0a to ally_agree
  • Added iea_membs from IEA website to envr_membs
  • Added own state system composition data to stat_actor
  • Added desta_agree from the Design of Trade Agreements (DESTA) to trad_agree
  • Added desta_membs from the Design of Trade Agreements (DESTA) to trad_membs

Wrangling

  • Added rearrange() to allow arranging variables by position
  • Added overlaps() to identify temporally overlapping IDs
  • Added squish() to add new data frame rows combining observations identified as overlapping from overlaps()