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:
parent
e89d083333
commit
aa5eaac43e
|
@ -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"
|
||||||
)
|
)
|
||||||
```
|
```
|
||||||
|
|
Loading…
Reference in New Issue