powered by
neat alias of the week day with reference based on current date
nday(date, reference.alias = FALSE)
week day of the date in a readable format with reference alias based on current date
a Date or POSIX time stamp
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.
# 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)
Run the code above in your browser using DataLab