Introduction

In today’s digital age, social media platforms like Twitter have become crucial for staying updated on the latest trends and news. Analyzing Twitter data can provide valuable insights into what’s happening around the world in real time. In this blog post, we’ll explore the latest 10 tweets using R and dive into the significance of this data.

Fetching Twitter Data Using R

To begin with, we fetched the latest 10 tweets using the R programming language. Here’s the code snippet we used:

library(dplyr)
library(readr)

dataset <- read_csv(“D:/archive (1)/Tweets.csv”)

dataset <- dataset %>%
mutate(tweet_created = as.POSIXct(tweet_created, format = “%d-%m-%y %H:%M”))

latest_10_tweets <- dataset %>%
arrange(desc(tweet_created)) %>%
select(tweet_id, name, text) %>%
head(10)

print(latest_10_tweets)

Analyzing the tweets

Tweet_idUser_nameTexts
5.70306CairdinWhat @dhepburn said.
5.70307Jnardinoplus you’ve added commercials to the experience… tacky.
5.70308YvonnalynnI didn’t today… Must mean I need to take another trip!
5.70309Pratameshit’s really aggressive to blast obnoxious “entertainment” in your guests’ faces & they have little recourse
5.70310Sauraband it’s a really big bad thing about it
5.70311Suyogyes, nearly every time I fly VX this ear worm wont go away 🙂
5.70312BhawneshReally missed a prime opportunity for Men Without Hats parody, there. https://t.co/mWpG7grEZP
5.70313SahilWell, I didn’t but NOW I DO! 😀
5.70314Prafulit was amazing, and arrived an hour early. You’re too good to me.
5.70315Jayeshdid you know that suicide is the second leading cause of death among teens 10-24

Conclusion

In the age of information, staying updated with the latest trends and conversations on social media is crucial. By using R to fetch and analyze Twitter data, anyone can gain deeper insights into what matters most to the public. This Blog provides a clear pathway for fetching data and perform data mining on that data.

Comments