Skip to content

This function determines if the input is a weekday object.

Usage

is_weekday(x)

Arguments

x

[object]

An object.

Value

TRUE if x inherits from "clock_weekday", otherwise FALSE.

Examples

is_weekday(1)
#> [1] FALSE
is_weekday(weekday(1))
#> [1] TRUE