Learn R Programming

SentimentAnalysis (version 1.3-4)

SentimentDictionaryWordlist: Create a sentiment dictionary consisting of a simple wordlist

Description

This routine creates a new object of type SentimentDictionaryWordlist

Usage

SentimentDictionaryWordlist(wordlist)

Value

Returns a new object of type SentimentDictionaryWordlist

Arguments

wordlist

is a vector containing the individual entries as strings

See Also

SentimentDictionary

Examples

Run this code
# generate a dictionary with "uncertainty" words
d <- SentimentDictionaryWordlist(c("uncertain", "possible", "likely"))
summary(d)
# alternative call
d <- SentimentDictionary(c("uncertain", "possible", "likely"))
summary(d)

Run the code above in your browser using DataLab