code_acronym: Code Acronym for Titles

View source: R/code_agreements.R

code_acronymR Documentation

Code Acronym for Titles

Description

Codes an acronym for agreement titles to facilitate comparison.

Usage

code_acronym(title)

Arguments

title

A character vector of treaty title

Details

Codes acronyms that are 4 to 6 digits long. For shorter treaty titles, six words or less, acronym includes first letter of each word. For longer treaty titles, seven words or more, acronym includes first letter of first word in title, followed by the number of words in the title, and first letter of last word in title.

Examples

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

## End(Not run)

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