phrase.count {textreg} | R Documentation |
Count phrase appearance.
Description
Count number of times a _single_ phrase appears in the corpus
Usage
phrase.count(phrase, corp)
Arguments
phrase |
A string |
corp |
A corpus object from tm package |
See Also
Other textregCounting: make.count.table
,
make.phrase.matrix
Examples
library( tm )
data( bathtub )
phrase.count( "bathtub", bathtub )
[Package textreg version 0.1.5 Index]