Learn R Programming

SentimentAnalysis (version 1.3-5)

ruleRatio: Ratio of dictionary words

Description

Ratio of words in that dictionary compared to the total number of words in the document

Usage

ruleRatio(dtm, d)

Value

Ratio of dictionary words compared to all

Arguments

dtm

Document-term matrix

d

Dictionary of type SentimentDictionaryWordlist with words belonging to a single category