Learn R Programming

edgar (version 1.0.5)

getWordfrquency: Creates words frequency data frame from EDGAR filing.

Description

getWordfrquency creates word frequency data frame using filing text.

Usage

getWordfrquency(filepath)

Arguments

filepath
Path of downloaded filing.

Value

Function returns words frequency data frame.

Details

getWordfrquency function takes path of filing which can be download using getFilings function. Function cleans text from filing and creates words frequency data frame. This data frame is used in getWordcloud, getWordHistogram, and getSentimentCount functions.

Examples

Run this code
## Not run: 
# 
# word.frq <- getWordfrquency('Edgar Filings/100240_10-K_1994/100240_10-K_1994-03-31.txt')
# ## End(Not run)

Run the code above in your browser using DataLab