IniziaInizia gratis

Unire domande e risposte con i tag

Per approfondire le tabelle questions e answers, usa la tabella question_tags per capire i tag associati a ogni domanda posta e a ogni risposta fornita. Potrai combinare queste tabelle usando due inner join sia con la tabella questions sia con la tabella answers.

Questo esercizio fa parte del corso

Unire i dati con dplyr

Visualizza il corso

Istruzioni dell'esercizio

  • Usa due inner join per combinare le tabelle question_tags e tags con la tabella questions.
  • Ora usa due inner join per combinare le tabelle question_tags e tags con la tabella answers.

Esercizio pratico interattivo

Prova a risolvere questo esercizio completando il codice di esempio.

# 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 %>%
  ___ %>%
  ___
Modifica ed esegui il codice