เริ่มต้นใช้งานเริ่มต้นใช้งานได้ฟรี

Keys with different names

You have been contracted by a local school to perform some analysis using their internal databases. Two of those datasets are available in your R session:

  • students: contains information about the students attending the school
  • guardians: contains information about the adult who is the primary point of contact for the school for each student.

Your goal is to build a new data.table containing all the information about the guardian for each student.

แบบฝึกหัดนี้เป็นส่วนหนึ่งของหลักสูตร

Joining Data with data.table in R

ดูคอร์ส

แบบฝึกหัดเชิงโต้ตอบแบบลงมือทำ

ลองทำแบบฝึกหัดนี้โดยเติมโค้ดตัวอย่างนี้ให้สมบูรณ์

# Full join
___
แก้ไขและรันโค้ด