LoslegenKostenlos loslegen

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.

Diese Übung ist Teil des Kurses

Joining Data with data.table in R

Kurs anzeigen

Interaktive Übung

Versuche dich an dieser Übung, indem du diesen Beispielcode vervollständigst.

# Split the gdp and population columns by year
___(gdp_oceania, formula = ___, value.var = ___)
Code bearbeiten und ausführen