Learn R Programming

textreg (version 0.1.3)

phrase.count: 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

Run this code
library( tm )
data( bathtub )
phrase.count( "bathtub", bathtub )

Run the code above in your browser using DataLab