Creates an ID that contains information on the parties to an agreement, the type of agreement, the date, and the linkage to other agreements.
code_agreements(dataset = NULL, title, date)
A 'many' dataset.
If provided without a title and date variables, the function finds title and
date conforming columns in the dataset.
The function "expects" that there are variables named Title
and Begin
that they have been standardised using standardise_titles()
and
messydates::as_messydate()
, respectively.
A title variable.
The function "expects" that the variable has been standardised using
standardise_titles()
.
A date variable.
The function "expects" that the variable has been standardised using
messydates::as_messydate()
.
a character vector with the treatyIDs
if (FALSE) { # \dontrun{
IEADB <- dplyr::slice_sample(manyenviron::agreements$IEADB, n = 10)
code_agreements(dataset = IEADB)
code_agreements(title = IEADB$Title, date = IEADB$Begin)
} # }