Description Usage Arguments Author(s) Examples
Warn if the vector contains unknown datetime format such as "2003-12-15T-:15:18", "2003-12-15T13:-:19","–12-15","—–T07:15"
1 | warn_if_invalid_dtc(dtc, is_valid = is_valid_dtc(dtc))
|
dtc |
a character vector containing the dates |
is_valid |
a logical vector indicating whether elements in |
Samia Kabi
1 2 3 4 5 | ## No warning as `dtc` is a valid date format
warn_if_invalid_dtc(dtc = "2021-04-06")
## Issues a warning
warn_if_invalid_dtc(dtc = "2021-04-06T-:30:30")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.