From 6708e727c3f13433b4a8361fad658e17c9fce421 Mon Sep 17 00:00:00 2001 From: quirksahern Date: Thu, 29 Aug 2024 11:47:16 +0100 Subject: [PATCH] Update 26-log-regression.Rmd comments added for lubridate syntax --- episodes/26-log-regression.Rmd | 3 +++ 1 file changed, 3 insertions(+) diff --git a/episodes/26-log-regression.Rmd b/episodes/26-log-regression.Rmd index 36e8e661c..247ab02e0 100644 --- a/episodes/26-log-regression.Rmd +++ b/episodes/26-log-regression.Rmd @@ -59,6 +59,9 @@ We can see that dates are currently stored as the char data type. We also do not ```{r} # Calculate age (in years) as of their last birthday and add as an additional variable to our data. +# The %--% and %/% are synax specific to lubridate. +# In the first part we are asking it to find the difference between the two dates. +# We are then rounding down to the nearest year. amrData <- amrData %>% mutate(