youngwoos / Doit_R

<Do it! 쉽게 배우는 R 데이터 분석> 저장소
212 stars 438 forks source link

국정원 트위터 관련 질문입니다. #73

Open jpark234 opened 1 year ago

jpark234 commented 1 year ago

책에 나온 코드 그대로 따라하고 있는데, df_word <- filter(df_word, nchar(word) >= 2 이 구문을 실행하면 오류가 뜹니다.

image

youngwoos commented 1 year ago

nouns <- extractNoun(twitter$tw) 실행한 다음 nouns를 출력해 명사가 잘 추출됐는지 확인해보시겠어요?

궁금한 사항이 있으시면 아래 데이터 분석 커뮤니티에 질문을 올려주세요. 보다 빨리 답변을 받아보실 수 있습니다.

데이터 분석 커뮤니티 https://www.facebook.com/groups/datacommunity/

감사합니다.

jpark234 commented 1 year ago

명사는 잘 추출되는데, word 속성을 살펴보니 문자열이 아니라 integer로 조회가 됩니다.

youngwoos commented 1 year ago

nouns, word_count, df_word의 출력 결과를 캡쳐하여 아래 데이터 분석 커뮤니티에 올려주시겠어요? 확인하는대로 답변드리겠습니다.

데이터 분석 커뮤니티 https://www.facebook.com/groups/datacommunity/