1. Learn
  2. /
  3. Courses
  4. /
  5. Programming with dplyr

Connected

Exercise

Mutation necessary

The data you subsetted with select() and filter() in the previous exercise is available for you here as subsetted_imf. Recall that mutate() is used to create new columns in a tibble/data frame and that group_by() can be used with summarize() to calculate statistics for one variable across the levels of another variable.

Note that the usd_conversion_rate variable corresponds to how much of the nation's currency is needed to equal one US dollar (USD).

Instructions 1/2

undefined XP
    1
    2
  • Create a new column with name gdp_in_billions to find the GDP in the country's currency instead of in USD.