1. 学ぶ
  2. /
  3. コース
  4. /
  5. Joining Data with data.table in R

Connected

演習

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.

指示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".