Learn R Programming

SentimentAnalysis (version 1.3-4)

summary.SentimentDictionaryWordlist: Output summary information on sentiment dictionary

Description

Output summary information on sentiment dictionary

Usage

# S3 method for SentimentDictionaryWordlist
summary(object, ...)

# S3 method for SentimentDictionaryBinary summary(object, ...)

# S3 method for SentimentDictionaryWeighted summary(object, ...)

Arguments

object

Sentiment dictionary of type SentimentDictionaryWordlist, SentimentDictionaryBinary or SentimentDictionaryWeighted

...

Additional parameters passed to specific sub-routines

See Also

print for output the entries of a dictionary

Examples

Run this code
summary(SentimentDictionary(c("uncertain", "possible", "likely")))
summary(SentimentDictionary(c("increase", "rise", "more"),
                            c("fall", "drop")))
summary(SentimentDictionary(c("increase", "decrease", "exit"),
                            c(+1, -1, -10),
                            rep(NA, 3)))

Run the code above in your browser using DataLab