Îmbinarea întrebărilor și răspunsurilor cu tag-uri
Pentru a afla mai multe despre tabelele questions și answers, vei folosi tabela question_tags ca să înțelegi tag-urile asociate fiecărei întrebări adresate și fiecărui răspuns oferit. Vei putea combina aceste tabele folosind două inner join-uri atât pe tabela questions, cât și pe tabela answers.
Acest exercițiu face parte din cursul
Joining Data with dplyr
Instrucțiuni pentru exercițiu
- Folosește două inner join-uri pentru a combina tabelele
question_tagsșitagscu tabelaquestions. - Acum, folosește două inner join-uri pentru a combina tabelele
question_tagsșitagscu tabelaanswers.
Exercițiu interactiv practic
Încearcă acest exercițiu completând acest cod de exemplu.
# 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 %>%
___ %>%
___