Learn R Programming

edgar (version 1.0.5)

getWordcloud: Creates wordcloud of words from EDGAR filing.

Description

getWordcloud creates wordcloud of words from filing.

Usage

getWordcloud(word.frq, words.list)

Arguments

word.frq
Word frequency data frame created using getWordfrquency function.
words.list
Word list as a sentiment dictionary.

Value

Function creates wordcloud.

Details

getWordcloud function takes words frequency data frame as an input from getWordfrquency function. It compares this words frequency data frame with the input dictionary and generates wordcloud using match words.

Examples

Run this code
## 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.
# 
# getWordcloud(word.frq, words.list)
# ## End(Not run)

Run the code above in your browser using DataLab