依抱怨類型視覺化情緒
現在來建立一個 sentiment_twitter 資料框,看看平均而言,帶有抱怨的貼文是否真的更負面。
本練習屬於課程
R 文字分析入門
動手互動練習
試著完成這個範例程式碼,體驗一下這個練習。
sentiment_twitter <- tidy_twitter %>%
# Append the bing sentiment dictionary
___(___) %>%
# Count by complaint label and sentiment
___(___) %>%
# Spread the sentiment and count columns
___(___) %>%
# Compute overall_sentiment = positive - negative
___(___)