Exercise

Bond... James Bond

You've been given a James Bond movie dataset (bond_df) and want to visualize the number of movies that Bond actors have featured in per decade. However, the data is in an untidy format with the decade values captured in the column headers. You'll tidy this dataset to give each variable its own column.

The ggplot2 package has been pre-loaded for you.

Instructions 1/3

undefined XP
    1
    2
    3
  • Pivot all columns except Bond to a longer format and set the names of the newly created columns to decade and n_movies.