BaşlayınÜcretsiz Başlayın

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.

Bu egzersiz

Reshaping Data with tidyr

kursunun bir parçasıdır
Kursu Görüntüle

Uygulamalı interaktif egzersiz

Bu örnek kodu tamamlayarak bu egzersizi bitirin.

drink_df %>%
  # Separate the ingredients over rows
  ___
Kodu Düzenle ve Çalıştır