ComeçarComece de graça

Adding custom stop words

We've seen a number of words in twitter_data that aren't informative and should be removed from your final list of words. In this exercise, you will add a few words to your custom_stop_words data frame .

Este exercício faz parte do curso

Introduction to Text Analysis in R

Ver curso

Instruções do exercício

  • The column names for the new data frame of custom stop words should match stop_words.
  • Add http, win, and t.co as custom stop words.
  • Row bind the custom stop words to stop_words.

Exercício interativo prático

Experimente este exercício completando este código de exemplo.

custom_stop_words <- tribble(
  # Column names should match stop_words
  ___, ___,
  # Add http, win, and t.co as custom stop words
  ___, "CUSTOM",
  ___, "CUSTOM",
  ___, "CUSTOM"
)

# Bind the custom stop words to stop_words
stop_words2 <- stop_words %>% 
  ___(___)
Editar e executar o código