phrase.count: Count phrase appearance.

Description Usage Arguments See Also Examples

Description

Count number of times a _single_ phrase appears in the corpus

Usage

1
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

1
2
3
library( tm )
data( bathtub )
phrase.count( "bathtub", bathtub )

textreg documentation built on May 2, 2019, 8:34 a.m.