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

Differences between Batman and Star Wars

In the video, you compared two sets. Now, you'll compare two themes, each of which is made up of many sets.

First, you'll need to join in the themes. Recall that doing so requires going through the sets first. You'll use the inventory_parts_joined table from the video, which is already available to you in the console.

inventory_parts_joined <- inventories %>%
  inner_join(inventory_parts, by = c("id" = "inventory_id")) %>%
  arrange(desc(quantity)) %>%
  select(-id, -version)

Bu egzersiz

Joining Data with dplyr

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

Egzersiz talimatları

  • In order to join in the themes, you'll first need to combine the inventory_parts_joined and sets tables.
  • Then, combine the first join with the themes table, using the suffix argument to clarify which table each name came from ("_set" or "_theme").

Uygulamalı interaktif egzersiz

Bu örnek kodu tamamlayarak bu egzersizi bitirin.

# Start with inventory_parts_joined table
inventory_parts_joined %>%
  # Combine with the sets table 
  ___ %>%
  # Combine with the themes table 
  ___
Kodu Düzenle ve Çalıştır