SentimentDictionaryBinary | R Documentation |
This routines creates a new object of type SentimentDictionaryBinary
that
stores two separate vectors of negative and positive words
SentimentDictionaryBinary(positiveWords, negativeWords)
positiveWords |
is a vector containing the entries labeled as positive |
negativeWords |
is a vector containing the entries labeled as negative |
Returns a new object of type SentimentDictionaryBinary
SentimentDictionary
# generate a dictionary with positive and negative words
d <- SentimentDictionaryBinary(c("increase", "rise", "more"),
c("fall", "drop"))
summary(d)
# alternative call
d <- SentimentDictionary(c("increase", "rise", "more"),
c("fall", "drop"))
summary(d)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.