Using the Twitter API for sentiment analysis in R