Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

removeWords

Remove Words from a Text Document


Description

Remove words from a text document.

Usage

## S3 method for class 'character'
removeWords(x, words)
## S3 method for class 'PlainTextDocument'
removeWords(x, ...)

Arguments

x

A character or text document.

words

A character vector giving the words to be removed.

...

passed over argument words.

Value

The character or text document without the specified words.

See Also

getTransformations to list available transformation (mapping) functions.

remove_stopwords provided by package tau.

Examples

data("crude")
crude[[1]]
removeWords(crude[[1]], stopwords("english"))

tm

Text Mining Package

v0.7-8
GPL-3
Authors
Ingo Feinerer [aut, cre] (<https://orcid.org/0000-0001-7656-8338>), Kurt Hornik [aut] (<https://orcid.org/0000-0003-4198-9911>), Artifex Software, Inc. [ctb, cph] (pdf_info.ps taken from GPL Ghostscript)
Initial release
2020-11-17

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.