remove_terms | R Documentation |
Remove the given terms from the strings.
remove_terms( x, terms, where = "all", include.lowercase = FALSE, polish = TRUE, recursive = FALSE )
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 ? |
After removing the numerics, beginning, double and ending spaces are also removed from the strings.
Vector with terms removed
Leo Lahti leo.lahti@iki.fi
See citation("bibliographica")
x2 <- remove_terms("test this", c("this", "works"), where = "all")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.