Learn R Programming

fHMM (version 1.4.2)

find_closest_year: Find closest year

Description

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

Usage

find_closest_year(date)

Value

An integer, the closest year to the input date.

Arguments

date

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