R/helpers.R
find_closest_year.Rd
This function takes a date as input and returns the closest year.
date
find_closest_year(date)
[character(1)] The date in format "YYYY-MM-DD".
character(1)
"YYYY-MM-DD"
An integer, the closest year to the input date.
integer