감정 개수 세기
tidy_twitter 데이터셋이 로드되어 있어요. 트위터 데이터에서 어떤 감정이 가장 많이 나타나는지 살펴보겠습니다.
이 연습은 강의의 일부입니다
R로 시작하는 텍스트 분석
연습 안내
tidy_twitter와 NRC 감성 사전을 조인하세요.sentiment_twitter에서 감정을 집계하세요.- 감정 개수를 내림차순으로 정렬하세요.
실습형 인터랙티브 연습
이 예제를 이 샘플 코드를 완성하여 풀어보세요.
# Join tidy_twitter and the NRC sentiment dictionary
sentiment_twitter <- ___ %>%
___(___("nrc"))
# Count the sentiments in sentiment_twitter
___ %>%
___(___) %>%
# Arrange the sentiment counts in descending order
___(___)