is_date_proper: Check date format

View source: R/process_auxiliary.R

is_date_properR 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


amadeus documentation built on April 4, 2025, 12:21 a.m.