Is x a weekday?

is_weekday(x)

Arguments

x

a POSIXct, POSIXlt, Date, chron, yearmon, yearqtr, zoo, zooreg, timeDate, xts, its, ti, jul, timeSeries, or fts object.

Value

boolean indicating whether x is a weekday

Examples

is_weekday("2017-08-29") # FALSE
#> [1] TRUE
is_weekday("2017-09-02") # TRUE
#> [1] FALSE