Fix broken cross-refs

This commit is contained in:
Hadley Wickham 2022-04-28 07:46:57 -05:00
parent 7d750f5328
commit 0225697e08
3 changed files with 3 additions and 3 deletions

View File

@ -120,7 +120,7 @@ flights |>
filter(month %in% c(1, 2))
```
We'll come back to these comparisons and logical operators in more detail in Chapter \@ref(logicals-numbers).
We'll come back to these comparisons and logical operators in more detail in Chapter \@ref(logical).
When you run `filter()` dplyr executes the filtering operation, creating a new data frame, and then prints it.
It doesn't modify the existing `flights` dataset because dplyr functions never modify their inputs.

View File

@ -530,7 +530,7 @@ flights |>
)
```
## Making groups
## Making groups {#groups-from-logical}
Before we move on to the next chapter, I want to show you one last trick.
I don't know exactly how to describe it, and it feels a little magical, but it's super handy so I wanted to make sure you knew about it.

View File

@ -458,7 +458,7 @@ lead(x)
```
- `x == lag(x)` tells you when the current value changes.
This is often useful combined with the cumulative tricks describe in Section \@ref(cumulative-tricks).
This is often useful combined with the grouping trick described in Section \@ref(groups-from-logical).
```{r}
x == lag(x)