numEntries | R Documentation |
Counts total number of entries in dictionary.
numEntries(d)
d |
Dictionary of type |
numPositiveEntries
and
numNegativeEntries
for more option to count the number of entries
numEntries(SentimentDictionary(c("uncertain", "possible", "likely"))) # returns 3
numEntries(SentimentDictionary(c("increase", "rise", "more"),
c("fall", "drop"))) # returns 5
numEntries(SentimentDictionary(c("increase", "decrease", "exit"),
c(+1, -1, -10),
rep(NA, 3))) # returns 3
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.