| numPositiveEntries | R Documentation | 
Counts total number of positive entries in dictionary.
numPositiveEntries(d)
d | 
 is a dictionary of type   | 
Entries in SentimentDictionaryWeighted with a weight of 0 
are not counted here
numEntries and
numNegativeEntries for more option to count the number of entries
numPositiveEntries(SentimentDictionary(c("increase", "rise", "more"),
                            c("fall", "drop"))) # returns 3
numPositiveEntries(SentimentDictionary(c("increase", "decrease", "exit"),
                               c(+1, -1, -10),
                               rep(NA, 3))) # returns 1
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.