Learn R Programming

xefun (version 0.1.5)

date_lwd: latest workday

Description

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

Usage

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

Value

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

Arguments

n

number of days

to

a date, default is current system date.

Examples

Run this code
date_lwd(5)
date_lwd(3, "2016-01-01")
date_lwd(3, "20160101")

Run the code above in your browser using DataLab