check_dates | R Documentation |
check format of dates from DeGAUSS container input file
check_dates(date, allow_missing = FALSE)
date |
vector of dates to be checked for formatting |
allow_missing |
logical. defaults to FALSE, resulting in an error if any dates are missing. |
ISO formatted dates (i.e., "%Y-%m-%d" or YYYY-MM-DD) will stay the same U.S. standard slash formatted dates (common to Microsoft Excel; e.g., "%m/%d/%y" or MM/DD/YY, "%m/%d/%Y" or MM/DD/YYYY) will be reformatted to ISO format Any unrecognized input will cause an error and the user will be instructed to reformat their dates.
reformatted vector of dates, or an error if dates could not be reformatted
date <- c("1/1/21", "1/2/21", "1/3/21")
check_dates(date)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.