Removing custom stop words
Popular terms in a text corpus can be visualized using bar plots or word clouds.
However, it is important to remove custom stop words present in the corpus first before using the visualization tools.
In this exercise, you will check the term frequencies and remove custom stop words from the text corpus that you had created for "telemedicine"
.
The text corpus has been pre-loaded as twt_corpus
.
The libraries qdap
and tm
have been pre-loaded for this exercise.
This exercise is part of the course
Analyzing Social Media Data in R
Hands-on interactive exercise
Have a go at this exercise by completing this sample code.
# Extract term frequencies for top 60 words and view output
termfreq <- ___(twt_corpus, ___)
termfreq