Closed adamhsparks closed 4 years ago
I have updated the code to allow for leap years where estimating the season length
mutate(season_length = case_when(
# add a day for leap years
leap_year(year(first_sign_disease)) &
(is.na(planting_date) | is.na(harvest_date)) ~
season_length + 1,
2012 and 2016 were both leap years, should we not account for this?