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

Casting multiple columns

The data table from the previous exercise, gdp_oceania, is available in your workspace. Your goal is to create a wide format data table, splitting both the "gdp" and "population" columns by the "year" column.

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

Joining Data with data.table in R

ดูคอร์ส

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

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

# Split the gdp and population columns by year
___(gdp_oceania, formula = ___, value.var = ___)
แก้ไขและรันโค้ด