getDocs: Display Frequency Matrix for Phrases

Description Usage Arguments Value Examples

View source: R/getDocs.R

Description

Display a frequency matrix containing all the documents that contain any of the phrases in phrs and the number of times they occur in that document.

Usage

1
getDocs(pd, phrs)

Arguments

pd

A phraseDoc object.

phrs

A set of phrases.

Value

A matrix with the documents and # of occurrences for the phrases in phrs.

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)
getDocs(pd, c("test text","another test text"))

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

Related to getDocs in phm...