validate_dates_format: Validate Date Formats

View source: R/utils.R

validate_dates_formatR Documentation

Validate Date Formats

Description

This function checks if the provided start and end dates are in the correct numeric format.

Usage

validate_dates_format(start_date, end_date)

Arguments

start_date

A string representing the start date. Expected format is numeric, e.g., "1090101".

end_date

A string representing the end date. Expected format is numeric, e.g., "1090101".

Value

NULL. If the dates are not in the expected format, an error is thrown.

Examples

# This should throw an error:
## Not run: 
validate_dates_format("10901", "1100101")

## End(Not run)

yl17124/legisTaiwan documentation built on Jan. 22, 2025, 8:47 p.m.