Questions, Answers, और Tags को जोड़ना
पिछले अभ्यास पर आगे बढ़ते हुए, अपने पिछले joins में tags टेबल जोड़ते हैं। इससे हमें यह पहचानने में मदद मिलेगी कि Stack Overflow पर कौन-से R टॉपिक सबसे ज़्यादा traction पाते हैं। पिछले अभ्यास में आपने जो टेबल बनाई थीं, वे आपके लिए answer_counts और question_answer_counts के रूप में प्रीलोड कर दी गई हैं.
answer_counts <- answers %>%
count(question_id, sort = TRUE)
question_answer_counts <- questions %>%
left_join(answer_counts, by = c("id" = "question_id")) %>%
replace_na(list(n = 0))
यह अभ्यास पाठ्यक्रम का हिस्सा है
dplyr के साथ डेटा जॉइन करना
अभ्यास निर्देश
question_tagsटेबल कोquestion_answer_countsके साथinner_joinका उपयोग करके जोड़ें.- अब, एक और
inner_joinका उपयोग करकेtagsटेबल जोड़ें.
इंटरैक्टिव व्यावहारिक अभ्यास
इस अभ्यास को इस नमूना कोड को पूरा करके आज़माएँ।
question_answer_counts %>%
# Join the question_tags tables
___ %>%
# Join the tags table
___