youngwoos / Doit_R

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

여기에 질문해 주세요. #1

Open youngwoos opened 7 years ago

youngwoos commented 7 years ago

궁금한 점이 있으면 질문을 올려주세요. 작성한 코드나 캡쳐 이미지를 함께 올려주시면 답변하는 데 도움이 됩니다. 아래 페이스북 커뮤니티에 질문을 올리시면 좀 더 빨리 답변을 받아보실 수 있습니다.

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

감사합니다.

kjaewon commented 7 years ago

Doit_R-master\한국복지패널데이터\데이터\Koweps_hpc10_2015_beta1.sav 파일을 받으면 134바이트입니다. data폴더도 마찬가지이고 개별적으로 받아도 동일합니다. 상세한 설명 부탁드립니다.

youngwoos commented 7 years ago

다운로드 용량 제한이 초과돼서 생기는 문제입니다. 아래 링크를 통해 파일을 다운로드 하시겠어요? http://bit.ly/Koweps_hpc10_2015

sj-yoo commented 7 years ago

http://bit.ly/Koweps_hpc10_2015 링크 오류가 발생하네요.

youngwoos commented 7 years ago

링크 정상 작동하는데 다시 시도해보시겠어요?

sj-yoo commented 7 years ago

회사에서 막아놓은 것 같네요. 핸드폰으로 해보니 되요. 감사합니다.

knj0125 commented 7 years ago

11장 지도에서 한글이 깨지네요.

youngwoos commented 7 years ago

한글 깨지는 부분의 코드와 그래프를 올려주시겠어요?

knj0125 commented 7 years ago

코드 str(changeCode(kormap1)) ggChoropleth(data = korpop1, # 지도에 표현할 데이터 aes(fill = pop, # 색깔로 표현할 변수 map_id = code, # 지역 기준 변수 tooltip = name), # 지도 위에 표시할 지역명 map = kormap1, # 지도 데이터 interactive = T)

default

       ## 코드

str(changeCode(tbc)) ggChoropleth(data = tbc, # 지도에 표현할 데이터 aes(fill = NewPts, # 색깔로 표현할 변수 map_id = code, # 지역 기준 변수 tooltip = name), # 지도 위에 표시할 지역명 map = kormap1, # 지도 데이터 interactive = T)

knj0125 commented 7 years ago

2

knj0125 commented 6 years ago
    p{margin-top:0;margin-bottom:0}

안녕하세요?

한글 깨지는 부분이랑 그래프 올려놓았는데 검토부탁드려요.^^ 감사합니다.

--------- 원본 메일 ---------

    보낸사람: Youngwoo Kim <notifications@github.com>
    받는사람: youngwoos/Doit_R <Doit_R@noreply.github.com>

        참조: knj0125 <knj0125@hanmail.net>, Comment <comment@noreply.github.com>

    날짜: 17.09.10 12:27 GMT +0900
    제목: Re: [youngwoos/Doit_R] 여기에 질문해 주세요. (#1)

    한글 깨지는 부분의 코드와 그래프를 올려주시겠어요?

—You are receiving this because you commented.Reply to this email directly, view it on GitHub, or mute the thread.

youngwoos commented 6 years ago

업데이트 되면서 인코딩 처리에 변화가 생긴 것 같습니다. 방법 찾는데로 알려드릴게요.

knj0125 commented 6 years ago

예 감사합니다.^^

삼성 갤럭시 스마트폰에서 보냈습니다. -------- 원본 이메일 --------보낸 사람: Youngwoo Kim notifications@github.com 날짜: 17/9/13 오전 7:43 (GMT+09:00) 받은 사람: youngwoos/Doit_R Doit_R@noreply.github.com 참조: knj0125 knj0125@hanmail.net, Comment comment@noreply.github.com 제목: Re: [youngwoos/Doit_R] 여기에 질문해 주세요. (#1) 업데이트 되면서 인코딩 처리에 변화가 생긴 것 같습니다. 방법 찾는데로 알려드릴게요.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub, or mute the thread.

{"api_version":"1.0","publisher":{"api_key":"05dde50f1d1a384dd78767c55493e4bb","name":"GitHub"},"entity":{"external_key":"github/youngwoos/Doit_R","title":"youngwoos/Doit_R","subtitle":"GitHub repository","main_image_url":"https://cloud.githubusercontent.com/assets/143418/17495839/a5054eac-5d88-11e6-95fc-7290892c7bb5.png","avatar_image_url":"https://cloud.githubusercontent.com/assets/143418/15842166/7c72db34-2c0b-11e6-9aed-b52498112777.png","action":{"name":"Open in GitHub","url":"https://github.com/youngwoos/Doit_R"}},"updates":{"snippets":[{"icon":"PERSON","message":"@youngwoos in #1: 업데이트 되면서 인코딩 처리에 변화가 생긴 것 같습니다. 방법 찾는데로 알려드릴게요."}],"action":{"name":"View Issue","url":"https://github.com/youngwoos/Doit_R/issues/1#issuecomment-329004928"}}}

youngwoos commented 6 years ago

@knj0125 R의 인코딩 방식을 UTF-8로 바꾸시면 한글이 정상적으로 출력될겁니다. 아래 코드 실행 후 다시 ggChoropleth() 코드를 실행해보시겠어요? options(encoding="UTF-8")

knj0125 commented 6 years ago

감사합니다. 한글 잘 실행됩니다. 추석 연휴 잘 보내세요.^^

youngwoos commented 6 years ago

@knj0125 다행입니다. 추석 즐겁게 보내세요!^^

byeongilkim commented 6 years ago

08-4 장의 ggplot(data = economics, aes(x = data, y = unemploy)) + geom_line() 코드를 입력하면

Don't know how to automatically pick scale for object of type function. Defaulting to continuous. Error in (function (..., row.names = NULL, check.rows = FALSE, check.names = TRUE, : arguments imply differing number of rows: 0, 574

이런식의 오류문이 발생합니다. 확인 부탁드리겠습니다.

youngwoos commented 6 years ago

@byeongilkim x = datax = date로 수정해보시겠어요?

ryumunhyung commented 6 years ago

11-1 장에서 ggiraphExtra 패캐지를 설치하려고 하는데

Package LibPath Version Priority Depends Imports LinkingTo Suggests Enhances License License_is_FOSS License_restricts_use OS_type Archs MD5sum NeedsCompilation Built

이러한 문구가 뜨면서 설치가 안됩니다. 어떻게 처리해야하는지 알려주실수 있으신지요???

youngwoos commented 6 years ago

@ryumunhyung 이 코드로 설치해보시겠어요? install.packages("ggiraphExtra", dependencies = c("Depends", "Suggests"))

youngwoos commented 6 years ago

@HOWSANG Raw 버튼 마우스 오른쪽 클릭 후 [다른 이름으로 링크 저장] 클릭 해보시겠어요?

HOWSANG commented 6 years ago

R을 정말 재밌게 배우고 있어요!ㅎㅎㅎㅎ 감사합니다^^!

youngwoos commented 6 years ago

@HOWSANG 도움이 되셨다니 다행입니다.^^

Hinterhalter commented 6 years ago

안녕하세요 wordcloud 관련해서 질문 있습니다.

워드클라우드 이미지까지 출력하는건 했는데 몇가지 질문이 있습니다.

  1. 텍스트 굵기는 어떻게 조정하나요?
  2. 원 말고 다른 모양도 가능한가요?
  3. 빈도수가 많은 큰 글씨 사이사이에 작은 글씨들이 들어가도록 할 수도 있나요?
  4. wordcloud 말고 다른 워드클라우드 패키지가 있다면 알려주세요! rplot01
youngwoos commented 6 years ago

@Hinterhalter ?wordcloud 하시면 워드클라우드의 요소들을 지정하는 파라미터를 볼 수 있습니다. 다른 모양으로 만드시려면 wordcloud2 패키지를 사용해보세요. 아래 문서 참고하세요. https://www.r-graph-gallery.com/the-wordcloud2-library/

Sungjaejin commented 6 years ago

R 공부 즐겁고 열심히 하고 있는 학생입니다. csv_exam.csv 파일 다운로드를 어떻게 하는지 모르겠습니다. 다른 파일들은 download 버튼이 있지만 이 파일만 버튼이 나오지 않습니다. 확인부탁드립니다.

youngwoos commented 6 years ago

RAW 버튼 우클릭 한 다음 다른 이름으로 저장 해보시겠어요?

      1. 오후 4:24에 "Sungjaejin" notifications@github.com님이 작성:

csv_exam.csv 파일 다운로드를 어떻게 하는지 모르겠습니다. 다른 파일들은 download 버튼이 있지만 이 파일만 버튼이 나오지 않습니다. 확인부탁드립니다.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/youngwoos/Doit_R/issues/1#issuecomment-355489520, or mute the thread https://github.com/notifications/unsubscribe-auth/AbtNj5RxVWKgMv7ybcs3uzWK8os_AMiXks5tHc48gaJpZM4OZgGt .

seungwy commented 6 years ago

안녕하세요 두가지 질문이 있습니다.

  1. 특수문자를 제거하는 코드

    • str_replace_all(twitter$tw, "\W", " ")을 실행하면 tw 섹션이 아래와 같은 문자들로 표기됩니다: IAO cAC ISD u A AOAaAI AuºI AAþA I O O μa ª iAO U I AI ISD Aa CCI i AO U i AOAaCIAo AßAcAI 123 i iμ I AIAº 10 i OAI o i CN U -str_replace_all(txt, "\W", " ")을 실행했을때도 같은 모양의 문자가 표시됩니다. -코드를 실행하기 전에는 twitter 및 hiphop가사들이 한글로 잘 표현되서 데이터 import를 할 때는 문제가 없고 encoding 또한 UTF-8로 되어 있어서 왜 그렇게 되는지 의문입니다.
  2. Rstudio에도 microsoft프로그램들 처럼 그 전 실행 코드를 무효화 하는 undo (ctrl+z)같은 기능이 있나요?

감사합니다

youngwoos commented 6 years ago

안녕하세요?

str_replace_all(txt, "\W", " ") 에 "\"를 두 개 삽입해보시겠어요?

실행 취소 기능은 없는 것으로 알고 있습니다.

감사합니다.

      1. 오후 7:44에 "seungwy" notifications@github.com님이 작성:

안녕하세요 두가지 질문이 있습니다.

  1. 특수문자를 제거하는 코드

    • str_replace_all(twitter$tw, "\W", " ")을 실행하면 tw 섹션이 아래와 같은 문자들로 표기됩니다: IAO cAC ISD u A AOAaAI AuºI AAþA I O O μa ª iAO U I AI ISD Aa CCI i AO U i AOAaCIAo AßAcAI 123 i iμ I AIAº 10 i OAI o i CN U -str_replace_all(txt, "\W", " ")을 실행했을때도 같은 모양의 문자가 표시됩니다. -코드를 실행하기 전에는 twitter 및 hiphop가사들이 한글로 잘 표현되서 데이터 import를 할 때는 문제가 없고 encoding 또한 UTF-8로 되어 있어서 왜 그렇게 되는지 의문입니다.
  2. Rstudio에도 microsoft프로그램들 처럼 그 전 실행 코드를 무효화 하는 undo (ctrl+z)같은 기능이 있나요?

감사합니다

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/youngwoos/Doit_R/issues/1#issuecomment-355892996, or mute the thread https://github.com/notifications/unsubscribe-auth/AbtNjzIH3APOrb9EruhmwhG6sxjZ9Okyks5tIblXgaJpZM4OZgGt .

seungwy commented 6 years ago

안녕하세요

\\두개 입력해도 같은 결과가 나오네요

youngwoos commented 6 years ago

텍스트 파일을 새로 불러들여서 코드를 다시 실행해보시겠어요?

      1. 오후 8:03에 "seungwy" notifications@github.com님이 작성:

안녕하세요

\두개 입력해도 같은 결과가 나오네요

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/youngwoos/Doit_R/issues/1#issuecomment-355894855, or mute the thread https://github.com/notifications/unsubscribe-auth/AbtNj_WcuPA7yf1NEMyk4cBx1HSgr8C9ks5tIb3BgaJpZM4OZgGt .

seungwy commented 6 years ago

안녕하세요

새로 불러들여서 코드를 실행 해 보았는데도 결과가 같네요 ㅜㅜ

twitter <- read.csv("twitter.csv", header = T, stringsAsFactors = F, fileEncoding = "UTF-8")

twitter <- rename(twitter, no = 번호, id = 계정이름, date = 작성일, tw = 내용) # Korean to English 여기까지 실행을 했을 때는 111 ahkorea 11/2/2011 민주당의 ISD관련 주장이 전부 거짓으로 속속 드러나고있다. 미국이 ISD를 장악하고 있다고 주장하지만 중재인 123명 가운데 미국인은 10명뿐이라고 한다. 222 parkkeewoo 12/30/2011 말로만 '미제타도', 사실은 '미제환장'! 김정일 운구차가 링컨 컨티넬탈이던데 북한의 독재자나 우리나라 종북들이나 겉으로는 노동자, 서민을 대변한다면서 고급 외제차, 아이팟에 자식들 미국 유학에 환장하는 위선자들인거죠 333 zndvn33 1/5/2012 한나라당이 보수를 버린다네요 뭔가착각하는모냥인에 국민들

과 같이 한글이 잘 읽히는데

twitter$tw <- str_replace_all(twitter$tw, "\W", " ") # 특수문자 제거 코드를 진행하면 111 ahkorea 11/2/2011 IAO cAC ISD u A AOAaAI AuºI AAþA I O O μa ª iAO U I AI ISD Aa CCI i AO U i AOAaCIAo AßAcAI 123 i iμ I AIAº 10 i OAI o i CN U 222 parkkeewoo 12/30/2011 I IA A μμ c CAº IA E Aa eA AI i A μAA AAÆ UA AI øμ ºICNAC μ AcAU ª i ª o A ºIμeAI ª NA I A eμ AU IA eº CN U e i Þ UA A ÆAIÆI AU Aμe I A CÐ E AaCI A A AUμeAI AAO 333 zndvn33 1/5/2012 CN ª o cAI º o o U a º Aø CI A ð EAI IμeAIº o E iCI A O Æ I o Aþ A CI AºÐμeA E iCI A I I U ß cAIAøº iA iAuA iCN U iCØ μeA A ÆCN U i y CI e eAø

으로 표시가 됩니다 ㅜㅜ

youngwoos commented 6 years ago

붙여주신 코드 특수문자 제거 부분이 "\W"로 되어있는데, 이부분 확인해보시겠어요?

YongBeomKim commented 6 years ago

ggiraphExtra 패키지를 설치하는데 계속 오류가 발생합니다 책으로도 안되어서 위의 것으로도 안되고, 아래의 GitHub에서 직접 불러와서 설치를 해도 계속 오류가 발생합니다 (설치환경은 Linux 17.04 입니다)

devtools::install_github("cardiomoon/ggiraphExtra")

Downloading GitHub repo cardiomoon/ggiraphExtra@master from URL https://api.github.com/repos/cardiomoon/ggiraphExtra/zipball/master Installing ggiraphExtra URL 'https://cran.rstudio.com/src/contrib/ggiraph_0.4.2.tar.gz'을 시도합니다 Content type 'application/x-gzip' length 245987 bytes (240 KB)

downloaded 240 KB

Installing ggiraph URL 'https://cran.rstudio.com/src/contrib/rvg_0.1.7.tar.gz'을 시도합니다 Content type 'application/x-gzip' length 62924 bytes (61 KB)

downloaded 61 KB

Installing rvg URL 'https://cran.rstudio.com/src/contrib/gdtools_0.1.6.tar.gz'을 시도합니다 Content type 'application/x-gzip' length 35263 bytes (34 KB)

downloaded 34 KB

Installing gdtools '/usr/lib/R/bin/R' --no-site-file --no-environ --no-save \ --no-restore --quiet CMD INSTALL \ '/tmp/Rtmpj9H9rY/devtoolsa8b1125d4a8/gdtools' \ --library='/home/markbaum/R/x86_64-pc-linux-gnu-library/3.4' \ --install-tests

ERROR: dependency ‘gdtools’ is not available for package ‘rvg’

ERROR: dependency ‘rvg’ is not available for package ‘ggiraph’

ERROR: dependency ‘ggiraph’ is not available for package ‘ggiraphExtra’

YongBeomKim commented 6 years ago

위의 문제를 해결했습니다 ^^:;; $brew install cairo (오류난 cairo를 설치합니다) $export PKG_CONFIG_PATH=/usr/lib/pkgconfig (whois pkgconfig로 찾을 경로를 연결합니다)

$sudo apt-get update $sudo apt-get install libcairo2-dev (cairo 개발도구를 추가설치 합니다)

위 내용을 설치했으면 R 에서

install.packages("devtools")

devtools::install_github("cardiomoon/ggiraphExtra") 로 github를 통해서 설치하니까 됩니다!!

cairo때문에 오류발생하신 분들은 참고하세요

hajuxp commented 6 years ago

CVS파일은 다운로드가 안되는건가요?^^ 따로 다운로드 항목이 없어서 질문 남김니다!ㅜㅜ

youngwoos commented 6 years ago

RAW 아이콘 우클릭 후 다른 이름으로 저장하시면 됩니다.

      1. 오전 7:18에 "hajuxp" notifications@github.com님이 작성:

CVS파일은 다운로드가 안되는건가요?^^ 따로 다운로드 항목이 없어서 질문 남김니다!ㅜㅜ

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/youngwoos/Doit_R/issues/1#issuecomment-360553555, or mute the thread https://github.com/notifications/unsubscribe-auth/AbtNj2_Hb-wzlSj8N6GrVaSnhN7ui9wYks5tOMV8gaJpZM4OZgGt .

HBOh commented 6 years ago

패키지 다운로드 관련해서 질문드립니다.

지금 do it R 프로그래밍 책 120쪽 정도 까지 진행중인데요,

집에서 회사 노트북으로 하다보니 늘 library(패키지이름) 할때마다 Block 먹어서 답이없네요...

혹시 제가 주요 Package를 미리 다 다운 받아서 제 컴터에다가 넣어놓는 방법은 없을까요..?

youngwoos commented 6 years ago

안녕하세요?

R스튜디오에서 프로젝트 열어서 다시 해보시겠어요? 워킹 디렉터리에 파일이 있는지 확인해보세요.

      1. 오전 5:12에 "hajuxp" notifications@github.com님이 작성:

안녕하세요^^ 9강에서, install.packages('foreign') library(foreign) # SPSS 파일 불러오기 library(dplyr) # 전처리 library(ggplot2) # 시각화 library(readxl) # 엑셀파일 불러오기

raw_welfare <- read.spss(file = "Koweps_hpc10_2015_beta1.sav", to.data.frame = T)

koweps_hpc10_2015_beta1 파일을 로드하려 하면, Error in read.spss(file = "Koweps_hpc10_2015_beta1.sav", to.data.frame = T) : unable to open file: 'No such file or directory' 해당 오류가 뜹니다! 파일은 스크립트 저장위치에 같이 있는것 맞구요! 혹시 제가 놓친 부분이 있는건지....

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/youngwoos/Doit_R/issues/1#issuecomment-362850573, or mute the thread https://github.com/notifications/unsubscribe-auth/AbtNj5WonCH1bVvyHbBNE8R-oxlpgX3Fks5tRL3EgaJpZM4OZgGt .

hosuka commented 6 years ago

텍스트 마이닝에 나와있는 대로 txt<-str_replace_all(txt,"\W"," ") 했는데... 에러메시지 뜹니다.

Error in str_replace_all(txt, "\W", " ") : could not find function "str_replace_all"

youngwoos commented 6 years ago

안녕하세요?

library(stringr) 실행한 후에 함수를 실행해보세요. 그리고 str_replace_all(txt, "\W", " ") 에 "\"를 두 개 삽입해야합니다.

감사합니다.

HBOh commented 6 years ago

Rename 기능 관련 문의 드립니다.

F>0.2 -> Particle>0.2로 바꾸고 싶어서 아래와 같이 작성했는데 에러 메세지가 뜹니다 ...

COQC_new <- rename(COQC_new, Particle>0.2 =F>0.2) Error: unexpected '=' in "COQC_new <- rename(COQC_new, Particle>0.2 ="

youngwoos commented 6 years ago

@HBOh 변수명 F>0.2Particle>0.2로 바꾸고 싶다는 말씀이시죠? 겹따옴표를 이용해 아래와 같이 해보시겠어요? COQC_new <- rename(COQC_new, "Particle>0.2" = "F>0.2")

lja9702 commented 6 years ago

안녕하세요 좋은 자료 올려주셔서 감사합니다. 11장에 단계구분도 ggChoropleth(data = crime, aes(fill = Murder, map_id = state), map = states_map)을 입력하면 Error in [.data.frame(data, c(mapidvar, tooltip, fillvar)) : undefined columns selected 이런 에러메세지가 뜨는데 뭐가 문제인지 궁금합니다.

youngwoos commented 6 years ago

@lja9702 아마도 전처리 작업에 오류가 있지 않을까 싶은데요, 작성하신 전체 코드를 알려주시겠어요?

Anthory commented 6 years ago

저도 lja9702 님과 같은 오류가 발생합니다. Error in [.data.frame(data, c(mapidvar, tooltip, fillvar)) : undefined columns selected

github에서 part 11 스크립트를 내려 받아 그대로 실행했는데도 undefined columns selected 오류가 뜨는군요...

추가로 tools-->project option 에서 인코딩도 utf-8 로 바꾸었는데, 주석부분도 깨져서 나오네요....

원인이 무엇일까요?

================================================================ library(ggiraphExtra)

str(USArrests) head(USArrests)

library(tibble)

crime <- rownames_to_column(USArrests, var = "state") crime$state <- tolower(crime$state)

str(crime)

library(ggplot2) states_map <- map_data("state") str(states_map)

ggChoropleth(data = crime, # 吏€?룄?뿉 ?몴?쁽?븷 ?뜲?씠?꽣 aes(fill = Murder, # ?깋源붾줈 ?몴?쁽?븷 蹂€?닔 map_id = state), # 吏€?뿭 湲곗?€ 蹂€?닔 map = states_map) # 吏€?룄 ?뜲?씠?꽣

youngwoos commented 6 years ago

@lja9702 @Anthory 확인해보니 ggiraphExtra패키지가 아직 R 3.5 버전을 지원하지 않는 것 같습니다. R 3.4 버전에서는 잘 작동하네요. 패키지가 업데이트되기 전까지는 R 3.4 버전을 사용해보시겠어요? 아래 링크에서 다운로드 하시면 됩니다. https://cran.seoul.go.kr/bin/windows/base/old/3.4.4/

youngwoos commented 6 years ago

@lja9702 @Anthory 깃헙 버전의 ggiraphExtra 패키지를 설치하면 R 3.5 버전에서도 정상적으로 작동합니다. 아래 코드로 패키지 재설치 후 다시 시도해보세요. install.packages("devtools") devtools::install_github("cardiomoon/ggiraphExtra")

rlagusals commented 6 years ago

안녕하세요?

p209 한국복지패널데이터 spss 파일을 읽어오는데 아래와 같은 에러가 발생합니다. 깃허브 파일도 그렇고 한국복지패널 가입해서 다운받은 beta3.sav파일도 읽히지 않아요. 어떻게 해야할까요?

raw_welfare<-read.spss(file="Koweps_hpc10_2015_beta1.sav", to.data.frame=T) Warning message: In read.spss(file = "Koweps_hpc10_2015_beta1.sav", to.data.frame = T) : Koweps_hpc10_2015_beta1.sav: Compression bias (0) is not the usual value of 100

raw_welfare<-read.spss(file="Koweps_hpc10_2015_beta3.sav", to.data.frame=T) Warning message: In read.spss(file = "Koweps_hpc10_2015_beta3.sav", to.data.frame = T) : Koweps_hpc10_2015_beta3.sav: Compression bias (0) is not the usual value of 100

youngwoos commented 6 years ago

@rlagusals 파일 정상적으로 불러들여진거 같은데요? Warning message는 무시하고 진행하시면 됩니다.

testlife0 commented 6 years ago

안녕하세요. 책 따라하며 연일 감동입니다. ^^ (작업환경 Rstudio ver.1.1.453, 라이브러리는 대체적으로 3.5.1 이후버전)

이전 작업은 책에 설명한 대로 에러없이 진행 되었습니다. p240 1. 성별 직업 빈도표 만들기 코드 실행 시 아래와 같은 커멘트가 나오고,

A tibble: 0 x 2

... with 2 variables: job , n

View()로 확인을 하면 No data available in table로 나옵니다. 어디가 잘못된걸까요?