1. Learn
  2. /
  3. Courses
  4. /
  5. Reshaping Data with tidyr

Connected

Exercise

Hoisting Star Wars films

You've been given a nested data set on Star Wars characters (character_df) and want to explore the films in which they appeared. You'll first use the unnest_wider() and unnest_longer() functions to explore the data and will then switch to hoist() to select a specific element in the nested data structure directly.

Instructions 1/3

undefined XP
  • 1
    • Unnest the metadata column.
  • 2
    • Unnest the films column.
  • 3
    • As an alternative approach, use hoist() to select the first film from the films list nested in the metadata column.