1. Learn
  2. /
  3. Courses
  4. /
  5. Introduction to Text Analysis in R

Exercise

Counting by product and reordering

tidy_twitter has been tokenized and stop words, including custom stop words, have been removed. You would like to visualize the differences in word counts based on complaints and non-complaints.

Instructions

100 XP
  • Count words by whether or not its a complaint.
  • Keep the top 20 words by whether or not its a complaint.
  • Ungroup before reordering word as a factor by the count.