Learn R Programming

clock (version 0.7.1)

is_weekday: Is x a weekday?

Description

This function determines if the input is a weekday object.

Usage

is_weekday(x)

Value

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

Arguments

x

[object]

An object.

Examples

Run this code
is_weekday(1)
is_weekday(weekday(1))

Run the code above in your browser using DataLab