wday_monday: Function to get weekday number from a date where '1' is...

View source: R/lubridate_supplements.R

wday_mondayR Documentation

Function to get weekday number from a date where 1 is Monday and 7 is Sunday.

Description

Function to get weekday number from a date where 1 is Monday and 7 is Sunday.

Usage

wday_monday(x, as.factor = FALSE, abbr = FALSE)

Arguments

x

Date vector.

as.factor

Should the return be an (ordered) factor with weekday labels?

abbr

If as.factor, should the weekday lables be abbreviated?

Value

Numeric or factor vector.

Author(s)

Stuart K. Grange


skgrange/threadr documentation built on May 11, 2024, 12:16 p.m.