ComenzarEmpieza gratis

Visualizando el sentimiento por tipo de queja

Ahora vamos a crear un data frame sentiment_twitter y ver si, en promedio, las quejas son realmente más negativas o no.

Este ejercicio forma parte del curso

Introducción al análisis de texto en R

Ver curso

Ejercicio interactivo práctico

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

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
  ___(___)
Editar y ejecutar código