A calendar or fiscal year paired with a quarter, e.g. 2019Q1, 2019-Q1,
Q1 2019, or FY2019Q3. The quarter digit is constrained to 1-4 and the
year to a sane 1900-2099 window, so it does not swallow arbitrary tokens.
See also
Other datetime detectors:
is_abbr_month_date(),
is_clock_time(),
is_date(),
is_date_range(),
is_day_of_week(),
is_fiscal_year(),
is_hijri_date(),
is_iso_date(),
is_iso_datetime(),
is_long_date(),
is_month_day(),
is_month_of_year(),
is_month_year(),
is_rfc2822_datetime(),
is_us_date(),
is_us_datetime(),
is_yyyymm()
Examples
is_quarter(c("2019Q1", "Q3 2020", "FY2018Q4", "2019Q5", NA))
#> [1] TRUE TRUE TRUE FALSE NA