Learn R Programming

textreg (version 0.1.5)

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
# NOT RUN {
library( tm )
data( bathtub )
phrase.count( "bathtub", bathtub )
# }

Run the code above in your browser using DataLab