freqPhrases: Display Frequent Principal Phrases

View source: R/freqPhrases.R

freqPhrasesR 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)

phm documentation built on June 8, 2022, 1:05 a.m.