Exercise

Separating into columns and rows

Remember the drink ingredients data from the video? You've been given a similar version (drink_df) that also includes quantities and units. Now you want to create an overview of how much of each ingredient you should buy to make these drinks.

The dplyr package has been pre-loaded for you.

Instructions 1/3

undefined XP
    1
    2
    3
  • Inspect drink_df in the console to find the right separator in the ingredients column.
  • Separate the ingredients column so that for each drink each ingredient gets a row.