1. Učit se
  2. /
  3. Kurzy
  4. /
  5. Introduction to Text Analysis in R

Connected

cvičení

Practicing with grouped summaries

We can use pivot_wider() in association with the output of grouped summaries as well.

Pokyny

100 XP
  • Append tidy_twitter to the afinn sentiment dictionary.
  • Group by both complaint label and whether or not the user is verified.
  • Summarize the data to create a new column, aggregate_value, which contains the sum of value.
  • Spread the complaint_label and aggregate_value columns.