शुरू करेंमुफ़्त में शुरू करें

प्रश्नों और उत्तरों को टैग्स के साथ जोड़ना

questions और answers टेबल्स को बेहतर समझने के लिए, आप question_tags टेबल का उपयोग करेंगे ताकि हर पूछे गए प्रश्न और दिए गए उत्तर से जुड़े टैग्स समझ सकें। आप इन टेबल्स को दो inner joins की मदद से, पहले questions टेबल पर और फिर answers टेबल पर, जोड़ पाएँगे.

यह अभ्यास पाठ्यक्रम का हिस्सा है

dplyr के साथ डेटा जॉइन करना

पाठ्यक्रम देखें

अभ्यास निर्देश

  • दो inner joins का उपयोग करके question_tags और tags टेबल्स को questions टेबल के साथ जोड़ें.
  • अब, दो inner joins का उपयोग करके question_tags और tags टेबल्स को answers टेबल के साथ जोड़ें.

इंटरैक्टिव व्यावहारिक अभ्यास

इस अभ्यास को इस नमूना कोड को पूरा करके आज़माएँ।

# 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 %>%
  ___ %>%
  ___
कोड संपादित करें और चलाएँ