validate_dates_format | R Documentation |
This function checks if the provided start and end dates are in the correct numeric format.
validate_dates_format(start_date, end_date)
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". |
NULL. If the dates are not in the expected format, an error is thrown.
# This should throw an error:
## Not run:
validate_dates_format("10901", "1100101")
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.