Practicing reshaping data
The pivot_wider() verb allows us to quickly reshape or stack and transpose our data, making it easier to mutate().
Bu egzersiz
Introduction to Text Analysis in R
kursunun bir parçasıdırEgzersiz talimatları
- Append
tidy_twitterto the NRC sentiment dictionary. - Count by complaint label and sentiment.
- Widen the sentiment and count columns.
Uygulamalı interaktif egzersiz
Bu örnek kodu tamamlayarak bu egzersizi bitirin.
tidy_twitter %>%
# Append the NRC sentiment dictionary
___(___) %>%
# Count by complaint label and sentiment
___(___) %>%
# Spread the sentiment and count columns
___(___, )