tmIndex-methods {tm}R Documentation

Methods for Function tmIndex in Package ‘tm’

Description

Methods for function tmIndex in package tm.

Methods

object = "Corpus", FUN = sFilter, doclevel = FALSE
If doclevel is set, the method applies FUN onto each element of object and returns the indices; otherwise FUN is applied to object itself. Note that meta data (DMetaData) is automatically passed to FUN. The function FUN must return a Boolean value.

See Also

sFilter tmFilter

Examples

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

[Package tm version 0.3-1 Index]