str_rm_words: Remove words from a vector of words found in another vector...

Description Usage Arguments Value Examples

View source: R/text.table.R

Description

Remove words from a vector of words found in another vector of words.

Usage

1

Arguments

x

A vector of words.

y,

A vector of words to delete from x, defaults to English stop words.

Value

x, with the words found in y removed.

Examples

1
2
3
4
5
6
7
8
9
str_rm_words(
x = c("a", "dog", "went", "to", "the", "store"),
y = stopwords
)

str_rm_words(
x = c("a", "dog", "went", "to", "the", "store"),
y = c("dog", "store")
)

textTools documentation built on Feb. 5, 2021, 5:07 p.m.