remove_terms: Remove Terms

remove_termsR Documentation

Remove Terms

Description

Remove the given terms from the strings.

Usage

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 leo.lahti@iki.fi

References

See citation("bibliographica")

Examples

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

rOpenGov/bibliographica documentation built on April 10, 2022, 8:51 p.m.