tmFilter-methods {tm}R Documentation

Methods for Function tmFilter in Package 'tm'

Description

Methods for function tmFilter in package tm..

Methods

object = "TextDocCol", FUN = sFilter, doclevel = FALSE
If doclevel is set, the method applies FUN onto each element of object and returns the filtered object; otherwise FUN is applied to object itself, i.e., the filter is applied onto the object. Note that metadata is automatically passed to FUN. The function FUN must return a Boolean value.

See Also

sFilter tmIndex

Examples

data("crude")
tmFilter(crude, FUN = searchFullText, "company", doclevel = TRUE)

[Package tm version 0.2-3.7 Index]