removePhrases {phm} | R 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"))
[Package phm version 1.1.2 Index]