dateFormatCheck: Check date format

Description Usage Arguments Value Examples

View source: R/dateFormatCheck.r

Description

Checks to see if format is YYYY-MM-DD. Also performs a few other date checks.

Usage

1

Arguments

date

character

Value

condition logical TRUE or FALSE if checks passed or failed

Examples

1
2
3
4
date <- '1985-01-01'
dateFormatCheck(date)
dateWrong <- '1999/1/7'
dateFormatCheck(dateWrong)

EGRET documentation built on Aug. 17, 2018, 1:04 a.m.