logicals.qmd: use better variable names in example (#1623)

The variable names of this example were copied from the previous example, where logical vectors were summarized with `any()` and `all()`. However the present example the summary is with `sum()` and `mean()`, which was not updated in the variable names.
This commit is contained in:
Floris Vanderhaeghe 2024-01-29 02:11:21 +01:00 committed by GitHub
parent e89d083333
commit aa5eaac43e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 2 additions and 2 deletions

View File

@ -360,8 +360,8 @@ That, for example, allows us to see the proportion of flights that were delayed
flights |> flights |>
group_by(year, month, day) |> group_by(year, month, day) |>
summarize( summarize(
all_delayed = mean(dep_delay <= 60, na.rm = TRUE), proportion_delayed = mean(dep_delay <= 60, na.rm = TRUE),
any_long_delay = sum(arr_delay >= 300, na.rm = TRUE), count_long_delay = sum(arr_delay >= 300, na.rm = TRUE),
.groups = "drop" .groups = "drop"
) )
``` ```