2019-07-12
eco_agree
iea_agree
, eco_agree
, and tfd_agree
scripts more efficient, using new code_ functions introduced belowpop()
to code_parties()
countrycode
packagecode_location()
to code Location variable, currently relies on “Signed In” syntaxcode_subjects()
to code ESA variablescode_areas()
to code Area components of lineagecode_targets()
to code Target components of lineagecode_document()
to code D variablecode_languages()
to standardise Languages variablelingua()
to translate strings to Englishresequence()
to filter and resort dates across multiple columns of a data frametransmutate()
that could result in a conflict with maps::map()
2019-06-24
devtools::test()
to run all testthat
testscovr::codecov()
to check code coveragestat_actor
stat_actor
stat_actor
trad_agree
trad_agree
trad_membs
processing and documentationtrad_membs
envr_agree
watr_agree
and watr_membs
data help filesiea_agree
and iea_membs
, eco_agree
and eco_membs
, and tfd_agree
and tfd_membs
2019-02-02
stat_actor
informationenvr_agree
, envr_membs
, and their documentationally_agree
, ally_membs
, and their documentationtrad_agree
, trad_membs
, and their documentationtestthat
unit tests for datavalidate
package tootestthat
helper files for data testsrevise()
and relate()
as no longer necessaryrefuse()
to reunite()
to consolidate duplicate datatidyr::unite()
allows vectorisation and usage with dplyr::mutate()
recollect()
for similar usage with dplyr::summarise()
, but not yet used internallyrecent()
so that it cleverly recognises different separators, probable year, and year, month, day ordering and returns consistent resultsrepaint()
to multiple variablessnap()
to deal with new Beg/End syntax and missing values correctlyinterleave()
to intersperse two vectors or a vector and a set of missing values togetherenum()
, a convenience wrapper around format()
and nrow()
that cleverly reports for different object typesoverlaps()
to produce a grouped vector based on identical ID and overlapping episodic durationsdplyr::group_by()
and dplyr::summarise()
squish()
as unnecessary with new overlaps()
usagetestthat
unit tests for functionsexpect_consist()
internally as a less verbose expect_match()
2019-01-06
envr_membs
ljd_codings
, envr-codings
, and stat_codings
to own scripts that are sourced as necessarystringdist::stringdistmatrix()
to consolidate similar treaties by title, after extracting similarities due to iterations (amendments, etc.)stat_actor
, envr_agree
, fish_agree
, envr_membs
, fish_membs
, and watr_membs
stat_actor
iea_membs
from IEADB to envr_membs
eco_membs
from ECOLEX to envr_membs
tfd_membs
from the Transboundary Freshwater Disputes Database (TFDD) to envr_membs
envr_membs
signature datesenvr_membs
ratification datesenvr_membs
entry into force datesenvr_membs
termination datesenvr_membs
into fish_membs
and watr_membs
remove()
function as redundant with dplyr::select()
moveMe()
to rearrange()
revise()
, but currently very slowconsolidate()
to act like dplyr::coalesce()
but for use with dplyr::summarise()
2018-12-20
dplyr::mutate()
based codecld2::detect_language()
to detect language of treaty titles and textsgoogleLanguageR::gl_translate()
to translate treaty titles and textsstat_actor
tfd_agree
from the Transboundary Freshwater Disputes Database (TFDD) to envr_agree
iea_agree
treaty texts to envr_agree
envr_agree
into fish_agree
and watr_agree
envr_refer
related codeally_agree
with ATOP v4.01recent()
to reset the century of (unlikely) future datesrevise()
to check for inconsistencies within data, includes _present, _missing, and _consistent checksmoveMe()
to move variables relative to named other variablesrefuse()
to append variables (vectorised, for use with dplyr::mutate()
etc)transmutate()
to drop mutated variables without losing other variables in data frameentitle()
to trim leading and trailing white spaceslice()
to snap()
to avoid dplyr::slice()
conflicts2018-11-20
envr_agree
envr_agree
envr_agree
using new wrangling functionsgva_membs
to envr_membs
, and settled some datesrepose()
to set observations to 1 if any supplied vectors trueretire()
to set obesrvations to maximum or minimum based on supplied vectorsregime()
to set observations from supplied vectors according to a given hierarchyrejoin()
to append all non-missing observations into a single vector2018-08-31
stat_actor
iea_agree
, eco_agree
, and envr_agree
2018-08-14
README.md
file with instructions on how to install packageLICENSE
file and pointed to bug/issue trackerNEWS.md
file to track changes to the packagetestthat
structure for the packagedaff
(data diff) and comparative graphs to README
envr_agree
envr_agree
isd_actor
data from International System(s) Dataset (ISD) to stat_actor
atop_agree
data from Alliance Treaty Obligations and Provisions (ATOP) v3.0a to ally_agree
iea_membs
from IEA website to envr_membs
stat_actor
desta_agree
from the Design of Trade Agreements (DESTA) to trad_agree
desta_membs
from the Design of Trade Agreements (DESTA) to trad_membs
rearrange()
to allow arranging variables by positionoverlaps()
to identify temporally overlapping IDssquish()
to add new data frame rows combining observations identified as overlapping from overlaps()