Joining in either direction
An inner_join
works the same way with either table in either position. The table that is specified first is arbitrary, since you will end up with the same information in the resulting table either way.
Let's prove this by joining the same two tables from the last exercise in the opposite order!
This exercise is part of the course
Joining Data with dplyr
Exercise instructions
- Connect the
inventory_parts
andparts
tables by their part numbers using an inner join.
Hands-on interactive exercise
Have a go at this exercise by completing this sample code.
# Combine the parts and inventory_parts tables
inventory_parts %>%
___