tm (version 0.5-10)

removeWords: Remove Words from a Text Document

Description

Remove a set of words from a text document.

Usage

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

Arguments

x
A text document.
words
A character vector listing the words to be removed.

Value

  • The text document with the specified words in it removed.

See Also

getTransformations to list available transformation (mapping) functions.

Examples

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

Run the code above in your browser using DataLab