ComenzarEmpieza gratis

Counting sentiment

The tidy_twitter dataset has been loaded for you. Let's see what sort of sentiments are most prevalent in our Twitter data.

Este ejercicio forma parte del curso

Introduction to Text Analysis in R

Ver curso

Instrucciones del ejercicio

  • Join tidy_twitter and the NRC sentiment dictionary.
  • Count the sentiments in sentiment_twitter.
  • Arrange the sentiment counts in descending order.

Ejercicio interactivo práctico

Prueba este ejercicio y completa el código de muestra.

# Join tidy_twitter and the NRC sentiment dictionary
sentiment_twitter <- ___ %>% 
  ___(___("nrc"))

# Count the sentiments in sentiment_twitter
___ %>% 
  ___(___) %>% 
  # Arrange the sentiment counts in descending order
  ___(___)
Editar y ejecutar código