Skip to content

Commit

Permalink
Update 26-log-regression.Rmd comments added for lubridate syntax
Browse files Browse the repository at this point in the history
  • Loading branch information
quirksahern authored Aug 29, 2024
1 parent 8c2ce4e commit 6708e72
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions episodes/26-log-regression.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down

0 comments on commit 6708e72

Please sign in to comment.