डेटा reshaping का अभ्यास
pivot_wider() verb हमें डेटा को तेज़ी से reshape या stack और transpose करने देता है, जिससे mutate() करना आसान हो जाता है.
यह अभ्यास पाठ्यक्रम का हिस्सा है
R में Text Analysis परिचय
अभ्यास निर्देश
tidy_twitterको NRC sentiment dictionary से जोड़ें.- complaint label और sentiment के आधार पर count करें.
- sentiment और count कॉलम को चौड़ा करें.
इंटरैक्टिव व्यावहारिक अभ्यास
इस अभ्यास को इस नमूना कोड को पूरा करके आज़माएँ।
tidy_twitter %>%
# Append the NRC sentiment dictionary
___(___) %>%
# Count by complaint label and sentiment
___(___) %>%
# Spread the sentiment and count columns
___(___, )