getSentimentCount: Parse sentiment words from EDGAR filing.

Description Usage Arguments Details Value Examples

View source: R/getSentimentCount.R

Description

getSentimentCount get sentiment words count from filing.

Usage

1
getSentimentCount(word.frq, words.list)

Arguments

word.frq

Word frequency dataframe created using getWordfrquency function.

words.list

Word list as a sentiment dictionary.

Details

getSentimentCount function takes words frequency dataframe as an input from getWordfrquency function. It compares these words with the input dictionary and parse matched words with their frequencies.

Value

Function returns sentiment words frequency dataframe.

Examples

1
2
3
4
5
6
7
8
9
## Not run: 

words.list <- scan(system.file('data/negwords.txt', package = 'edgar'), what='character')
## User can apply any desired user defined dictionary other than 
## default dictionaries from this package in txt format with each word in separate line.

senti.words <- getSentimentCount(word.frq, words.list)

## End(Not run)

edgar documentation built on June 4, 2017, 9:45 p.m.