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

View source: R/dates.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, show_relative_day = FALSE, reference_alias = NULL)

Arguments

date

a Date or POSIX time stamp

show_relative_day

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.

reference_alias

Deprecated. Use 'show_relative_day' instead.

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, show_relative_day = FALSE)
# Get day of the week with reference alias
nday(x, show_relative_day = TRUE)

neatR documentation built on Jan. 31, 2026, 5:07 p.m.