1. Learn
  2. /
  3. Courses
  4. /
  5. Introduction to Text Analysis in R

Exercise

Visualizing sentiment by complaint type

Now let's create a sentiment_twitter data frame and see whether or not complaints really are more negative, on average.

Instructions 1/2

undefined XP
    1
    2
  • Append tidy_twitter to the bing sentiment dictionary.
  • Count by complaint label and sentiment.
  • Spread the sentiment and count columns.
  • Add a new column, overall_sentiment, as positive - negative.