From 0225697e08a059e72712011c6e3d37a849ddb61d Mon Sep 17 00:00:00 2001 From: Hadley Wickham Date: Thu, 28 Apr 2022 07:46:57 -0500 Subject: [PATCH] Fix broken cross-refs --- data-transform.Rmd | 2 +- logicals.Rmd | 2 +- numbers.Rmd | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/data-transform.Rmd b/data-transform.Rmd index 3b5cf07..3f8a204 100644 --- a/data-transform.Rmd +++ b/data-transform.Rmd @@ -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. diff --git a/logicals.Rmd b/logicals.Rmd index 6a1750b..2072f68 100644 --- a/logicals.Rmd +++ b/logicals.Rmd @@ -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. diff --git a/numbers.Rmd b/numbers.Rmd index c6977e4..70c8334 100644 --- a/numbers.Rmd +++ b/numbers.Rmd @@ -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)