removeWords {tm}R Documentation

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

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

[Package tm version 0.5-10 Index]