1. Learn
  2. /
  3. Courses
  4. /
  5. Analyzing Social Media Data in R

Exercise

Power of twitter data

The volume and velocity of tweets posted on twitter every second is an indicator of the power of twitter data.

The enormous amount of information available, from the tweet text and its metadata, gives great scope for analyzing extracted tweets and deriving insights.

Let's extract a 1% random sample of live tweets using stream_tweets() for a 120 seconds window and save it in a data frame.

The dimensions of the data frame will give you insights about the number of live tweets extracted and the number of columns that contain the actual tweeted text and metadata on the tweets.

Instructions

100 XP
  • Extract live tweets for 120 seconds time window.
  • View dimensions of the data frame with the extracted tweets.