removePhrases: Remove Phrases from phraseDoc Object

View source: R/removePhrases.R

removePhrasesR Documentation

Remove Phrases from phraseDoc Object

Description

Remove a set of phrases from a phraseDoc object.

Usage

removePhrases(pd, phrs)

Arguments

pd

A phraseDoc object.

phrs

A set of phrases.

Value

A phraseDoc object with the phrases in phrs removed.

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

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