Ben Baumer
- Tidy data
- 3rd normal form
- SQL
- Relational Database Management Systems (RDBMS)
- Keys and indices
nycflights13
flights
airports
airlines
planes
weather
# A tibble: 3 × 7
year month day flight origin dest carrier
<int> <int> <int> <int> <chr> <chr> <chr>
1 2013 1 1 1545 EWR IAH UA
2 2013 1 1 1714 LGA IAH UA
3 2013 1 1 1141 JFK MIA AA
inner_join() returns all rows from flights where there are matching values in airlines.It returns all columns from both.
left_join() returns all rows from flights even if there are no matches in airlines. If no match then NA. It returns all columns from both.
All is returned, NA is filled in to missing data
flights
airlines