check_date {oeli} | R Documentation |
This function checks if the input date
has the format
"YYYY-MM-DD"
.
check_date(date)
date |
A |
as.Date(date)
if date
has the format "YYYY-MM-DD"
.
Otherwise, the function throws an error.
check_date(date = "2000-01-01")