date_lwd: latest workday

View source: R/date_funcs.R

date_lwdR Documentation

latest workday

Description

The latest workday date of n days before a specified date.

Usage

date_lwd(n, to = Sys.Date())

Arguments

n

number of days

to

a date, default is current system date.

Value

It returns the latest workday date that is n days before a specified date.

Examples

date_lwd(5)
date_lwd(3, "2016-01-01")
date_lwd(3, "20160101")


xefun documentation built on Aug. 10, 2023, 5:07 p.m.