시작하기무료로 시작하기

감성 시각화

word_counts 데이터셋을 만들고, Twitter 데이터에서 각 감성과 함께 자주 나타나는 단어가 무엇인지 살펴보아요.

이 연습은 강의의 일부입니다

R로 시작하는 텍스트 분석

강의 보기

실습형 인터랙티브 연습

이 예제를 이 샘플 코드를 완성하여 풀어보세요.

word_counts <- tidy_twitter %>% 
  # Append the NRC dictionary and filter for positive, fear, and trust
  ___(___) %>% 
  ___(___) %>%
  # Count by word and sentiment and keep the top 10 of each
  ___(___) %>% 
  group_by(___) %>% 
  ___(___) %>% 
  ungroup() %>% 
  # Create a factor called word2 that has each word ordered by the count
  mutate(___)
코드 편집 및 실행