CommencerCommencer gratuitement

What colors are included in at least one set?

Besides comparing two sets directly, you could also use a filtering join like semi_join to find out which colors ever appear in any inventory part. Some of the colors could be optional, meaning they aren't included in any sets.

The inventory_parts and colors tables have been preloaded for you.

Cet exercice fait partie du cours

Joining Data with dplyr

Afficher le cours

Instructions

  • Use the inventory_parts table to find the colors that are included in at least one set.

Exercice interactif pratique

Essayez cet exercice en complétant cet exemple de code.

# Use inventory_parts to find colors included in at least one set
colors %>%
  ___
Modifier et exécuter le code