Add warning message to joins chapter

This commit is contained in:
Hadley Wickham 2022-09-18 16:23:42 -05:00
parent 789856a868
commit 4795d093bc
1 changed files with 7 additions and 1 deletions

View File

@ -25,6 +25,11 @@ If you're familiar with SQL, you should find the ideas in this chapter familiar,
### Prerequisites
::: callout-important
This chapter relies on features only found in the development version of dplyr.
If you want to live life on the edge you can get the dev version with `devtools::install_github("tidyverse/dplyr")`.
:::
We'll explore the five related datasets from nycflights13 using the join functions from dplyr.
```{r}
@ -329,7 +334,8 @@ airports |>
```
**Anti-joins** are the opposite: they return all rows in `x` that don't have a match in `y`.
They're useful for finding missing values that are **implicit** in the data, the topic of @sec-missing-implicit. Implicitly missing values don't show up as explicit `NA`s but instead only exist as an absence.
They're useful for finding missing values that are **implicit** in the data, the topic of @sec-missing-implicit.
Implicitly missing values don't show up as explicit `NA`s but instead only exist as an absence.
For example, we can find rows that should be in `airports` by looking for flights that don't have a matching destination:
```{r}