Finding gaps between questions and answers
Now we'll join together questions with answers so we can measure the time between questions and answers.
Make sure to explore the tables and columns in the console before starting the exercise. Can you tell how are questions identified in the questions table? How can you identify which answer corresponds to which question using the answers table?
Diese Übung ist Teil des Kurses
Joining Data with dplyr
Anleitung zur Übung
- Use an inner join to combine the
questionsandanswerstables using the suffixes"_question"and"_answer", respectively. - Subtract
creation_date_questionfromcreation_date_answerwithin theas.integer()function to create thegapcolumn.
Interaktive Übung
Vervollständige den Beispielcode, um diese Übung erfolgreich abzuschließen.
questions %>%
# Inner join questions and answers with proper suffixes
___ %>%
# Subtract creation_date_question from creation_date_answer to create gap
___(gap = as.integer(___))