freqPhrases {phm} | R Documentation |
Display Frequent Principal Phrases
Description
Display the most frequent principal phrases in a phraseDoc object.
Usage
freqPhrases(pd, n = 10)
Arguments
pd |
A phraseDoc object. |
n |
Number of principal phrases to display. |
Value
A vector with the n
most frequent principal phrases and their
frequencies.
Examples
tst=c("This is a test text",
"This is a test text 2",
"This is another test text",
"This is another test text 2",
"This girl will test text that man",
"This boy will test text that man")
pd=phraseDoc(tst)
freqPhrases(pd, 2)
[Package phm version 1.1.2 Index]