extractWords: Extract words from dictionary

Description Usage Arguments Examples

View source: R/SentimentDictionary.R

Description

Returns all entries from a dictionary.

Usage

1

Arguments

d

Dictionary of type SentimentDictionaryWordlist, SentimentDictionaryBinary or SentimentDictionaryWeighted

Examples

1
2
3
4
5
6
extractWords(SentimentDictionary(c("uncertain", "possible", "likely"))) # returns 3
extractWords(SentimentDictionary(c("increase", "rise", "more"),
                                 c("fall", "drop"))) # returns 5
extractWords(SentimentDictionary(c("increase", "decrease", "exit"),
                                 c(+1, -1, -10),
                                 rep(NA, 3))) # returns 3

SentimentAnalysis documentation built on April 10, 2018, 1:03 a.m.