View source: R/parse_dttm_fmt.R
fmt_rg | R Documentation |
fmt_rg()
creates a character vector of named patterns to match individual
date/time components.
fmt_rg(
sec = "(\\b\\d|\\d{2})(\\.\\d*)?",
min = "(\\b\\d|\\d{2})",
hour = "\\d?\\d",
mday = "\\b\\d|\\d{2}",
mon = stringr::str_glue("\\d\\d|{months_abb_regex()}"),
year = "(\\d{2})?\\d{2}",
na = NULL,
sec_na = na,
min_na = na,
hour_na = na,
mday_na = na,
mon_na = na,
year_na = na
)
sec |
Regexp for the second component. |
min |
Regexp for the minute component. |
hour |
Regexp for the hour component. |
mday |
Regexp for the month day component. |
mon |
Regexp for the month component. |
year |
Regexp for the year component. |
na |
Regexp of alternatives, useful to match special values coding for missingness. |
sec_na |
Same as |
min_na |
Same as |
hour_na |
Same as |
mday_na |
Same as |
mon_na |
Same as |
year_na |
Same as |
A named character vector of named patterns (regexps) for matching each date/time component.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.