Is it a day-of-week name?
Value
Logical vector; TRUE for a full or three-letter English weekday
name (Monday, Mon, ...). Numeric weekday positions are intentionally
excluded as too ambiguous to detect from values alone.
See also
Other datetime detectors:
is_abbr_month_date(),
is_clock_time(),
is_date(),
is_date_range(),
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_quarter(),
is_rfc2822_datetime(),
is_us_date(),
is_us_datetime(),
is_yyyymm()
Examples
is_day_of_week(c("Monday", "TUE", "Wed", "Someday", NA))
#> [1] TRUE TRUE TRUE FALSE NA