Skip to contents

Return TRUE if the date vector is a weekend (saturday/sunday).

Usage

is_weekend(x)

Arguments

x

A date vector

Value

A boolean vector with the return from the condition check.

Examples


is_weekend(x = Sys.time())
#> [1] FALSE

is_weekend(x = Sys.Date())
#> [1] FALSE