Description Usage Arguments Value
Convert a character vector containing dates as substrings into a vector of the corresopding dates
1 2 | convert_to_date(v, match_reg = "^[0-9]{4}-[0-9]{2}-[0-9]{2}",
date_form = "%Y-%m-%d")
|
v |
character vector containing dates as substrings |
match_reg |
regular expression specifying the format of the dates contained within the substrings. Default is ^[0-9]4-[0-9]2-[0-9]2. |
date_form |
the date format to be used for conversion. |
A date vector the same length as v
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.