check_date {fHMM}R Documentation

Check date format

Description

This function checks if the input date has the format "YYYY-MM-DD".

Usage

check_date(date)

Arguments

date

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

Value

as.Date(date) if date has the format "YYYY-MM-DD". Otherwise, the function throws an error.


[Package fHMM version 1.4.1 Index]