Learn R Programming

SentimentAnalysis (version 1.3-4)

print.SentimentDictionaryWordlist: Output content of sentiment dictionary

Description

Prints entries of sentiment dictionary to the screen

Usage

# S3 method for SentimentDictionaryWordlist
print(x, ...)

# S3 method for SentimentDictionaryBinary print(x, ...)

# S3 method for SentimentDictionaryWeighted print(x, ...)

Arguments

x

Sentiment dictionary of type SentimentDictionaryWordlist, SentimentDictionaryBinary or SentimentDictionaryWeighted

...

Additional parameters passed to specific sub-routines

See Also

summary for showing a brief summary

Examples

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

Run the code above in your browser using DataLab