Multi-column keys
Two new datasets are available in your R session:
subjects: contains the subject each student is taking each semester this yearlocations: contains the room allocations for each subject
Your goal is to build a new data.table with the locations of each subject for each student.
แบบฝึกหัดนี้เป็นส่วนหนึ่งของหลักสูตร
Joining Data with data.table in R
แบบฝึกหัดเชิงโต้ตอบแบบลงมือทำ
ลองทำแบบฝึกหัดนี้โดยเติมโค้ดตัวอย่างนี้ให้สมบูรณ์
# Right join
subjects[___]