remove_terms: Remove Terms

Description Usage Arguments Details Value Author(s) References Examples

View source: R/remove_terms.R

Description

Remove the given terms from the strings.

Usage

1
2
remove_terms(x, terms, where = "all", include.lowercase = FALSE,
  polish = TRUE, recursive = FALSE)

Arguments

x

A vector

terms

Terms to be removed

where

Locations to be removed ("all" / "begin" / "middle" / "end")

include.lowercase

Include also lowercase versions of the terms

polish

polish the entries after removing the terms (remove trailing spaces and periods)

recursive

Apply the changes recursively along the list ?

Details

After removing the numerics, beginning, double and ending spaces are also removed from the strings.

Value

Vector with terms removed

Author(s)

Leo Lahti [email protected]

References

See citation("bibliographica")

Examples

1
x2 <- remove_terms("test this", c("this", "works"), where = "all")

rOpenGov/bibliographica documentation built on Nov. 9, 2018, 5:31 p.m.