Exercise

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.

Instructions 1/3

undefined XP
    1
    2
    3

Convert gdp_oceania to wide format with each country as a row, and splitting both the "gdp" and "population" columns into columns for each "year".