find_closest_year | R Documentation |
This function takes a date
as input and returns the closest year.
find_closest_year(date)
date |
A |
An integer
representing the closest year to the input date.
## Not run:
find_closest_year(as.Date("2022-07-15"))
find_closest_year(as.Date("2022-01-01"))
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.