IniziaInizia gratis

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.

Questo esercizio fa parte del corso

Introduction to Text Analysis in R

Visualizza il corso

Esercizio pratico interattivo

Prova a risolvere questo esercizio completando il codice di esempio.

sentiment_twitter <- tidy_twitter %>% 
  # Append the bing sentiment dictionary
  ___(___) %>% 
  # Count by complaint label and sentiment
  ___(___) %>% 
  # Spread the sentiment and count columns
  ___(___) %>% 
  # Compute overall_sentiment = positive - negative
  ___(___)
Modifica ed esegui il codice