code_type: Code Agreement Type

View source: R/code_agreements.R

code_typeR Documentation

Code Agreement Type

Description

Identify the type of international agreement from titles. Agreements can be, for example, multilateral treaties or coventions (A), protocols (P) or amendments (E), if they contain words in title.

Usage

code_type(title)

Arguments

title

A character vector of treaty title

Details

Types of agreements differentiate agreements from protocols or amendments, for example. For the complete list of types of agreements coded please run the function without an argument (i.e. code_type()).

Value

A character vector of the treaty type

Examples

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

## End(Not run)

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