nday: neat alias of the week day with reference based on current...

View source: R/src.R

ndayR Documentation

neat alias of the week day with reference based on current date

Description

neat alias of the week day with reference based on current date

Usage

nday(date, reference.alias = FALSE)

Arguments

date

a Date or POSIX time stamp

reference.alias

a Boolean. If set to TRUE, a reference alias of week day is shown based on current date such as Today/Yesterday/Tomorrow/Last/Coming.

Value

week day of the date in a readable format with reference alias based on current date

Examples

# Get day of the week of current date without reference alias
x <- Sys.Date()
nday(x, reference.alias = FALSE)
# Get day of the week with reference alias
nday(x, reference.alias = TRUE)

neatR documentation built on March 31, 2023, 9:34 p.m.