Description Usage Arguments Details Value See Also Examples
Given a list of phrases, count how many documents they appear in and subdivide by positive and negative appearance.
1 | make.count.table(phrases, labeling, corpus)
|
phrases |
List of strings |
labeling |
Vector of +1/0/-1 labels |
corpus |
A corpus object from tm package |
This method does not consider multiple counts of phrases within documents.
Phrases can have wildcards and stemming notation. See grab.fragments
.
a dataframe of statistics. per.pos is the percent of the documents with the phrase that are positively labeled. per.tag is the percent of the positively labeled documents that have the phrase.
grab.fragments
Other textregCounting: make.phrase.matrix
,
phrase.count
1 2 3 4 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.