Sentiment Analysis of Twitter Data Using Statistical Analysing Tool R Studio
DOI:
https://doi.org/10.17010/ijcs/2019/v4/i5/149458Keywords:
#IndiaStrikeBack
, Sentiment Analysis, Social Media, Twitter.Manuscript Received
, July 24, 2019, Revised, August 17, Accepted, August 20, 2019. Date of Publication, October 5, 2019.Abstract
Today, social media is considered as the best platform for the exchange of data and views on a large scale. With increase in number of users, the data generated on daily basis is increasing rapidly. This data is useful in analyzing people's opinions about the ongoing trends and activities occurring across the world. The data generated on these platforms is analyzed and this is known as social media data analysis. This type of data analysis is also known as opinion mining where the views and thoughts of people are extracted and processed, which then helps in knowing the current mindset of people regarding various activities. To accomplish the need of knowing people's mindset, the popular social media site Twitter can be used.
Twitter is an online micro-blogging service that facilitates delivery and interpretation of 140 posts known as "tweets". It is one of the platforms for gathering large and diverse data, and from this gathered data it is easy to analyze a person's sentiments. This is known as sentiment analysis.
Sentiment analysis uses the idea of data analysis to extract emotions, comments, reviews, etc. from different social media platforms. The paper contains tweets that are extracted using the hashtag IndiaStrikeBack (#IndiaStrikeBack) for the duration of ten days when people were emotional about the response given back by the Indian armed forces against the attack. The paper then analyses the thoughts and feelings of various users of Twitter behind their tweets about the action taken by the Indian armed forces in response to the Pulwama attack. For doing the analysis of the extracted tweets, a robust tool R was used.
R is a statistical tool that is user-friendly and easy to use. It is used for performing data analysis of the data that has been extracted from social media platform. With the help of packages such as Twitter, the extraction of tweets from Twitter and doing its analysis becomes easier. The extracted data is stored in Comma Separated Values (csv) files and is further represented in the form of bar charts. The opinions of the people are categorized into two different sentiments, namely, (positive and negative). There is a classification of users' emotion into 8 categories, namely, anger, anticipation, disgust, fear, joy, sadness, surprise, and trust that are taken from NRC sentiment dictionary. The feelings transmitted by sarcasm and irony are not very well served by the instrument for analyzing feelings.
Downloads
Downloads
Published
How to Cite
Issue
Section
References
S. Singh and S. S. Choudhary, "Social media data analysis: Twitter sentimental analysis using R language," International Journal of Advances in Electronics and Computer Science,vol. 4, no. 11, 2017.
J. Spencer and G. Uchyigit, "Sentimentor: Sentiment analysis of Twitter Data," School of Computing, Engineering and Mathametics, University of Brighton, 2012.
I. Keka and B. Çiço, "Statistical treatment for trend detection and analyzing of electrical load using programming language R," in 4th Mediterranean Conference on Embedded Computing, Montenegro, 2015. https://dx.doi.org/10.1109/MECO.2015.7181906
T. D. Chung, R. Ibrahim, S. M. Hassan, and N. S. Rosli, "Fast approach for automatic data retrieval using R programminglanguage," in 2nd IEEE International Symposium on Robotics and Manufacturing Automation (ROMA), 2016.
B. Gupta, M. Negi, K. Vishwakarma, G. Rawat, and P. Badhani, "Study of Twitter sentiment analysis using machine learning algorithms on Python," International Journal of Computer Applications, vol. 165, no. 9, pp. 29-34, 2017.
V. V. Raniand K. S. Rani, "Twitter streaming and analysis through R," Indian Journal of Science and Technology, vol. 9, no. 45, 2016. https://dx.doi.org/10.17485/ijst/2016/v9i45/97914
T. R. Komati, S. B. Allamsetty, and C. V. Pinnamaraju, "Implementation of sentiment analysis on Twitter data," International Journal of Pure and Applied Mathematics, vol. 116, no. 5, pp. 69-74, 2017.
S. Singh and S. S. Choudhary, "Social media data analysis: Twitter sentimental analysis using R language," International Journal of Advances in Electronics and Computer Science, vol. 4, no. 11, pp. 2394-2835, 2017.