Is x a weekend?

is_weekend(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 weekend

Examples

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