Learn R Programming

tm (version 0.7-5)

removeWords: Remove Words from a Text Document

Description

Remove words from a text document.

Usage

# S3 method for character
removeWords(x, words)
# S3 method for 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

Run this code
# NOT RUN {
data("crude")
crude[[1]]
removeWords(crude[[1]], stopwords("english"))
# }

Run the code above in your browser using DataLab