Interactive Course

Analyzing Social Media Data in R

Extract and visualize Twitter data, perform sentiment and network analysis, and map the geolocation of your tweets.

  • 4 hours
  • 16 Videos
  • 57 Exercises
  • 756 Participants
  • 4,700 XP

Loved by learners at thousands of top companies:

rei-grey.svg
lego-grey.svg
dell-grey.svg
deloitte-grey.svg
mls-grey.svg
siemens-grey.svg

Course Description

Analyzing data from social media can provide you with valuable insights. It can inform campaign strategies, improve marketing and sales, measure customer engagement, perform competitor analysis, and identify untapped networks. In this course, you’ll use R to extract and visualize Twitter data, perform network analysis, and view the geolocation of tweets. You’ll use a variety of datasets to put what you’ve learned into play, including tweets about celebrities, technology companies, trending topics, and sports.

  1. 1

    Understanding Twitter data

    Free

    Get started with understanding the power of Twitter data and what you can achieve using social media analysis. In this chapter, you’ll extract your first set of tweets using the Twitter API and functions from the powerful ‘rtweet’ library. Then it’s time to explore how you can use the components from your extracted Twitter data to derive insights for social media analysis.

  2. Visualize Tweet texts

    A picture is worth a thousand words! In this chapter, you’ll discover how you can visualize text from tweets using bar plots and word clouds. You’ll learn how to process tweet text and prepare a clean text corpus for analysis. Imagine being able to extract key discussion topics and people's perceptions about a subject or brand from the tweets they are sharing. You’ll be able to do just that using topic modeling and sentiment analysis.

  3. Analyzing Twitter data

    It’s time to go deeper. Learn how you can apply filters to tweets and analyze Twitter user data using the golden ratio and the Twitter lists they subscribe to. You’ll also learn how to extract trending topics and analyze Twitter data over time to identify interesting insights.

  4. Network Analysis and putting Twitter data on the map

    Twitter users tweet, like, follow, and retweet creating complex network structures. In this final chapter, you’ll learn how to analyze these network structures and visualize the relationships between these individual people as a retweet network. By extracting geolocation data from the tweets you’ll also discover how to display tweet locations on a map, and answer powerful questions such as which states or countries are talking about your brand the most? Geographic data adds a new dimension to your Twitter data analysis.

  1. 1

    Understanding Twitter data

    Free

    Get started with understanding the power of Twitter data and what you can achieve using social media analysis. In this chapter, you’ll extract your first set of tweets using the Twitter API and functions from the powerful ‘rtweet’ library. Then it’s time to explore how you can use the components from your extracted Twitter data to derive insights for social media analysis.

  2. Analyzing Twitter data

    It’s time to go deeper. Learn how you can apply filters to tweets and analyze Twitter user data using the golden ratio and the Twitter lists they subscribe to. You’ll also learn how to extract trending topics and analyze Twitter data over time to identify interesting insights.

  3. Visualize Tweet texts

    A picture is worth a thousand words! In this chapter, you’ll discover how you can visualize text from tweets using bar plots and word clouds. You’ll learn how to process tweet text and prepare a clean text corpus for analysis. Imagine being able to extract key discussion topics and people's perceptions about a subject or brand from the tweets they are sharing. You’ll be able to do just that using topic modeling and sentiment analysis.

  4. Network Analysis and putting Twitter data on the map

    Twitter users tweet, like, follow, and retweet creating complex network structures. In this final chapter, you’ll learn how to analyze these network structures and visualize the relationships between these individual people as a retweet network. By extracting geolocation data from the tweets you’ll also discover how to display tweet locations on a map, and answer powerful questions such as which states or countries are talking about your brand the most? Geographic data adds a new dimension to your Twitter data analysis.

What do other learners have to say?

Devon

“I've used other sites, but DataCamp's been the one that I've stuck with.”

Devon Edwards Joseph

Lloyd's Banking Group

Louis

“DataCamp is the top resource I recommend for learning data science.”

Louis Maiden

Harvard Business School

Ronbowers

“DataCamp is by far my favorite website to learn from.”

Ronald Bowers

Decision Science Analytics @ USAA

Sowmya Vivek
Sowmya Vivek

Data Science Coach

Sowmya is an independent consultant and data science coach in Machine Learning, Deep Learning & NLP. She has worked on different projects across Deep learning and NLP, business intelligence, workflow optimization, and e-learning content development. She is a visiting faculty for executive programs on business analytics and NLP. She loves blogging on data science and NLP. Check out her blogs at https://medium.com/@sowmyavivek

See More
Vivek Vijayaraghavan
Vivek Vijayaraghavan

Data Science Coach

Vivek is a data science trainer and consultant in analytics specializing in the areas of machine learning and natural language processing. He is a certified six sigma black belt and business analytics professional and has over two decades of experience across content management, operations, process excellence, analytics, and business intelligence.

See More
Collaborators
  • Anneleen Beckers

    Anneleen Beckers

  • Adel Nehme

    Adel Nehme

Prerequisites
Icon Icon Icon professional info