is_weekend: Conditional check if a date is a weekend

View source: R/is_weekend.r

is_weekendR Documentation

Conditional check if a date is a weekend

Description

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())

is_weekend(x = Sys.Date())


vbfelix/relper documentation built on May 10, 2024, 10:50 p.m.