시작하기무료로 시작하기

질문과 답변을 태그와 함께 조인하기

questionsanswers 테이블을 더 잘 이해하려면, 각 질문과 각 답변에 연결된 태그를 파악하기 위해 question_tags 테이블을 사용해야 합니다. questions 테이블과 answers 테이블에 각각 두 번의 inner join을 수행해 이 테이블들을 결합할 수 있습니다.

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

dplyr로 데이터 결합하기

강의 보기

연습 안내

  • 두 번의 inner join을 사용하여 question_tagstags 테이블을 questions 테이블과 결합하세요.
  • 이제, 두 번의 inner join을 사용하여 question_tagstags 테이블을 answers 테이블과 결합하세요.

실습형 인터랙티브 연습

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

# Inner join the question_tags and tags tables with the questions table
questions %>%
  inner_join(question_tags, by = ___) %>%
  inner_join(tags, by = ___)

# Inner join the question_tags and tags tables with the answers table
answers %>%
  ___ %>%
  ___
코드 편집 및 실행