使用 data.table 語法進行右連接(right join)
capitals 與 population 這兩個包含澳洲地理與人口資訊的 data.table 已經在你的工作空間中。你的目標是使用 data.table 語法執行右連接,把每個城市所屬的州別加入 population。
本練習屬於課程
R 的 data.table 資料合併
動手互動練習
試著完成這個範例程式碼,體驗一下這個練習。
# Right join population to capitals using data.table syntax
capitals[___, on = ___]