is_date_proper {amadeus}R Documentation

Check date format

Description

Check date input strings conform to the required format.

Usage

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

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.

Value

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

Author(s)

Insang Song


[Package amadeus version 1.2.3 Index]