phrase.count: Count phrase appearance.

View source: R/text_searching.R

phrase.countR 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 )

textreg documentation built on Sept. 17, 2026, 1:07 a.m.