AbbrevTerm: Abbreviate a word within a journal title based on the ISSN's...

Description Usage Arguments Value Author(s) See Also Examples

View source: R/AbbrevTerm.R

Description

Abbreviate a word within a journal title based on the ISSN's List of Title Word Abbreviations (LTWA).

NOTE: this function only abbreviates single terms, not full titles. It is a helper function called by AbbrevTitle.

Usage

1

Arguments

x

A single word from a journal title, in the form of a string.

check

A logical indicating whether to check for an abbreviation (if TRUE), or always return the original word (if FALSE). This is a convenience argument that simplifies vectorization within the function AbbrevTitle.

Value

A string reflecting the abbreviated form of x, or, if check == FALSE or no abbreviation is found, the original x.

Author(s)

Patrick Barks <patrick.barks@gmail.com>

See Also

AbbrevTitle

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
AbbrevTerm("Canadian")
AbbrevTerm("journal")
AbbrevTerm("Entomology")
AbbrevTerm("medical")
AbbrevTerm("PLoS")
AbbrevTerm("Acuático")
AbbrevTerm("Investigación")
AbbrevTerm("Investigación", check = FALSE)

## Not run: 
# argument should be a single word (i.e. a string with no spaces)
# use function AbbrevTitle() to abbreviate a full title
AbbrevTerm("Canadian Journal of Entomology")

## End(Not run)

patrickbarks/abbrevr documentation built on Oct. 27, 2021, 3:25 a.m.