code_linkage: Code Agreement Linkages

View source: R/code_agreements.R

code_linkageR Documentation

Code Agreement Linkages

Description

Identify the linkage between amendments and protocols to a main agreement.

Usage

code_linkage(title, date, return_all = FALSE)

Arguments

title

A character vector of treaty title

date

A date variable

return_all

Do you want all the variables to be returned in a list? By default, FALSE.

Details

The function identifies duplicates by excluding "predictable" words from strings, this maintains key words then used to identify and link duplicates. This is a choice that considers errors should lie on the side of false negatives rather than false positives. For the complete list of words removed from title to identify duplicates please run the function without arguments (i.e. code_linkage()).

Value

A character vector of the agreements that are linked

Examples

## Not run: 
IEADB <- dplyr::slice_sample(manyenviron::agreements$IEADB, n = 10)
code_linkage(IEADB$Title, IEADB$Beg)

## End(Not run)

globalgov/qCreate documentation built on April 27, 2023, 3:27 a.m.