replaceWords-methods {tm}R Documentation

Methods for Function replaceWords in Package ‘tm’

Description

Methods for function replaceWords in package tm.

Methods

object = "PlainTextDocument", words = "character", by = "character"
Replaces all words which occur in object with by and return the object.

Examples

data("crude")
crude[[1]]
replaceWords(crude[[1]], c("Corp", "copany"), "company")

[Package tm version 0.3 Index]