Learn R Programming

amadeus (version 1.2.3)

is_date_proper: Check date format

Description

Check date input strings conform to the required format.

Usage

is_date_proper(instr = NULL, format = "%Y-%m-%d")

Value

No returning value. It stops the function if instr doesn't conform to the format.

Arguments

instr

character(1). String to check.

format

character(1). Matching format to be checked. Default is "%Y-%m-%d", which can detect "%Y/%m/%d. See strftime for details of formatting this string.

Author

Insang Song