niki864 / CryptoTweetSentiment

A sentiment analyser in R that pulls tweets related to cryptocurrencies and plots the graphs related to how +ve or -ve the tweets are. Analyses BTC, ETH and LTC

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Sentiment Analysis of Tweets Related to Cryptocurrencies

Sentiment Analyses of Twitter tweets related to cryptocurrencies

Packages Required

TwitteR, plyr, stringr, ggplot2, downloadable from CRAN

Prerequisites

R and R Studio

Dataset Description

Data is aggregated from Twitter using the TwitteR search api call. Here we search for the term "#Cryptocurrency" and look for the last 1500 tweets.(Max. Free limit) This is raw tweet data as provided by the returned Json file.

After aggregating this data, data cleaning is done to remove unnecessary characters, numbers, non-english words, twitter symbols like @ RT and # to get raw text of tweets. Simple Regex matching is used to clean data.

Sentiment Analyser Description

A simple analyser function that increments or decrements points to a sentence based on words matched to a positive or negative word list.

This follows the tutorial at http://jeffreybreen.wordpress.com/2011/07/04/twitter-text-mining-r-slides/

The scores are then stored and used to generate graph plots based on sentiment score.

Summary

Histogram modeling using ggplot is done using the sentiment score on the overall dataset.

alt tag

Then we do the same for the term Bitcoin alone.

alt tag

Likewise for Ethereum

alt tag

Likewise for Litecoin

alt tag

License

This project is licensed under the MIT License - see the LICENSE.md file for details

Acknowledgments

About

A sentiment analyser in R that pulls tweets related to cryptocurrencies and plots the graphs related to how +ve or -ve the tweets are. Analyses BTC, ETH and LTC

License:MIT License


Languages

Language:R 100.0%