1. सीखें
  2. /
  3. पाठ्यक्रम
  4. /
  5. Introduction to Text Analysis in R

Connected

अभ्यास

Counting the NRC sentiments

The fourth dictionary included with the tidytext package is the nrc dictionary. Let's start our exploration with sentiment counts.

निर्देश

100 XP
  • I usually do this for you, but start with loading the tidyverse and tidytext packages.
  • Count the number of words associated with each sentiment in nrc.
  • Arrange the counts in descending order.