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 .
Cet exercice fait partie du cours
Introduction to Text Analysis in R
Instructions
- The column names for the new data frame of custom stop words should match
stop_words
. - Add
http
,win
, andt.co
as custom stop words. - Row bind the custom stop words to
stop_words
.
Exercice interactif pratique
Essayez cet exercice en complétant cet exemple de code.
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 %>%
___(___)