insp_replace_year_long | R Documentation |
insp_replace_year_long()
replaces numeric years which only have
three digits, rather than the expected four (i.e. 202
instead of 2020
).
The replacement value is the current year. This function is intended for
use inside
insp_cast_chr_date()
.
insp_replace_year_long(x, quiet = FALSE)
x |
A vector of dates |
quiet |
Should a warning be issued when malformed dates are detected? |
The corrected date vector
The calling function
insp_cast_chr_date()
, as well as higher-level functions
convert_to_date()
and
insp_prep_data()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.