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