Juntar perguntas e respostas com tags
Para saber mais sobre as tabelas questions
e answers
, você deverá usar a tabela question_tags
para entender as tags associadas a cada pergunta feita e a cada resposta fornecida. Você poderá combinar essas tabelas usando duas junções internas na tabela questions
e na tabela answers
.
Este exercício faz parte do curso
Unindo dados com o dplyr
Instruções de exercício
- Use duas junções internas para combinar as tabelas
question_tags
etags
com a tabelaquestions
. - Agora, use duas uniões internas para combinar as tabelas
question_tags
etags
com a tabelaanswers
.
Exercício interativo prático
Experimente este exercício preenchendo este código de exemplo.
# 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 %>%
___ %>%
___