From aa5eaac43eef81c651f3f44ed6577552beb0bbc2 Mon Sep 17 00:00:00 2001 From: Floris Vanderhaeghe Date: Mon, 29 Jan 2024 02:11:21 +0100 Subject: [PATCH] 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. --- logicals.qmd | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/logicals.qmd b/logicals.qmd index e7dcbb2..254b241 100644 --- a/logicals.qmd +++ b/logicals.qmd @@ -360,8 +360,8 @@ That, for example, allows us to see the proportion of flights that were delayed flights |> group_by(year, month, day) |> summarize( - all_delayed = mean(dep_delay <= 60, na.rm = TRUE), - any_long_delay = sum(arr_delay >= 300, na.rm = TRUE), + proportion_delayed = mean(dep_delay <= 60, na.rm = TRUE), + count_long_delay = sum(arr_delay >= 300, na.rm = TRUE), .groups = "drop" ) ```