This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Code to fetch news streams from 5 live sources, process the streams and text | |
| # and apply a simple sentiment scoring algorigthm. | |
| # | |
| # A writeup of the analysis can be found here: | |
| # https://www.linkedin.com/pulse/article/20141109035942-34768479-r-sentiment-scoring-hsbc-w-harvard-general-inquirer | |
| # Define the packages we want to load: | |
| packs = c( | |
| "tm", # Text mining | |
| "tm.plugin.webmining", # Web-source plugin for text mining |