From a0a0c0065542e600bbfdc64c333504251f3f1347 Mon Sep 17 00:00:00 2001 From: mine-cetinkaya-rundel Date: Sun, 9 Apr 2023 22:53:40 -0400 Subject: [PATCH] Fix typo for overnight arrival time, closes #1385 --- datetimes.qmd | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/datetimes.qmd b/datetimes.qmd index c687432..6a3ccf1 100644 --- a/datetimes.qmd +++ b/datetimes.qmd @@ -639,7 +639,7 @@ We can fix this by adding `days(1)` to the arrival time of each overnight flight flights_dt <- flights_dt |> mutate( overnight = arr_time < dep_time, - arr_time = arr_time + days(!overnight), + arr_time = arr_time + days(overnight), sched_arr_time = sched_arr_time + days(overnight) ) ```