Skip to content
master
Switch branches/tags
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
R
 
 
 
 
 
 
man
 
 
 
 
 
 
 
 
 
 
 
 
 
 

License tm.plugin.sentiment

tm.plugin.sentiment calculates the sentiment from (tm text corpora based on simple word counts. The package already includes a sentiment dictionary from the General Inquirer which can be replaced by custom ones. Build up of sentiment time series in xts and charting using facilities of quantmod are also supported.

Install

Using the devtools package you can easily install the latest development version of tm.plugin.sentiment from github with

library(devtools)
install_github("mannau/tm.plugin.sentiment")

Usage

The following lines show the basic functionality calculating the sentiment for the Apple (AAPL) stock:

library(tm.plugin.sentiment)

# retrieve corpus
require(tm.plugin.webmining)
corp = WebCorpus(GoogleFinanceSource("AAPL"))

# score corpus
corp <- score(corp)
sentixts <- metaXTS(corp)

# chart sentiment scores
chartSentiment(sentixts)

License

tm.plugin.sentiment is released under the GNU General Public License Version 3

About

Retrieve structured, textual data from various web sources.

Resources

License

Releases

No releases published

Packages

No packages published