find_closest_year: Find closest year

View source: R/helpers.R

find_closest_yearR Documentation

Find closest year

Description

This function takes a date as input and returns the closest year.

Usage

find_closest_year(date)

Arguments

date

[character(1)]
The date in format "YYYY-MM-DD".

Value

An integer, the closest year to the input date.


loelschlaeger/fHMM documentation built on June 15, 2025, 9:30 a.m.