1. เรียนรู้
  2. /
  3. Courses
  4. /
  5. Analyzing Social Media Data in R

Connected

Exercises

Perform sentiment analysis

You have extracted the sentiment scores for tweets on "Climate change" in the previous exercise.

Can you plot and analyze the most prevalent sentiments among people and see how the collective sentiment varies?

The data frame with the extracted sentiment scores has been pre-loaded as sa.value.

The library ggplot2 has been pre-loaded for this exercise.

คำแนะนำ 1 / 3

undefined XP
    1
    2
    3
  • Get the sum of the sentiment scores for each emotion.
  • Convert the sum of scores to a data frame.