tmFilter-methods {tm}R Documentation

Methods for Function tmFilter in Package ‘tm’

Description

Methods for function tmFilter in package tm.

Methods

object = "Corpus", FUN = searchFullText, doclevel = TRUE
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. If FUN has an attribute doclevel its value will be automatically used. Note that meta data (DMetaData) is automatically passed to FUN. The function FUN must return a logical value.

See Also

sFilter tmIndex getFilters

Examples

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

[Package tm version 0.3-3 Index]