Description Usage Arguments Value Examples
Function to check the validity of date inputs
1 | check_date(x, future_warning = FALSE)
|
x |
Date; a length 1 Date or a string expressed in a standard unambiguous format. Descriptive errors are produced for numeric inputs or invalid string formats. |
future_warning |
logical; When |
When no errors are triggered, check_date returns a valid Date object equal to the input.
1 2 3 4 5 6 7 | ## Not run:
check_date(3)
Error in check_date(3) :
'3' is an invalid date selection of class 'numeric'.
You must supply a valid date object or a character of form 'YYYY-MM-DD'!
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.