freqPhrases: Display Frequent Principal Phrases

Description Usage Arguments Value Examples

View source: R/freqPhrases.R

Description

Display the most frequent principal phrases in a phraseDoc object.

Usage

1
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

1
2
3
4
5
6
7
8
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)

phm documentation built on July 1, 2020, 6:54 p.m.

Related to freqPhrases in phm...