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_id | User_name | Texts |
| 5.70306 | Cairdin | What @dhepburn said. |
| 5.70307 | Jnardino | plus you’ve added commercials to the experience… tacky. |
| 5.70308 | Yvonnalynn | I didn’t today… Must mean I need to take another trip! |
| 5.70309 | Pratamesh | it’s really aggressive to blast obnoxious “entertainment” in your guests’ faces & they have little recourse |
| 5.70310 | Saurab | and it’s a really big bad thing about it |
| 5.70311 | Suyog | yes, nearly every time I fly VX this ear worm wont go away 🙂 |
| 5.70312 | Bhawnesh | Really missed a prime opportunity for Men Without Hats parody, there. https://t.co/mWpG7grEZP |
| 5.70313 | Sahil | Well, I didn’t but NOW I DO! 😀 |
| 5.70314 | Praful | it was amazing, and arrived an hour early. You’re too good to me. |
| 5.70315 | Jayesh | did 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
Post a Comment