Learn R Programming

bizdays (version 1.0.16)

bizseq: Create a sequence of business days

Description

Returns a sequence of dates with business days only.

Usage

bizseq(from, to, cal)

Value

A vector of Date objects that are business days according to the provided Calendar.

Arguments

from

the initial date

to

the final date (must be greater than from)

cal

the calendar's name

Date types accepted

The arguments from and to accept Date objects and any object that returns a valid Date object when passed through as.Date, which include all POSIX* classes and character objects with ISO formatted dates.

Examples

Run this code
bizseq("2013-01-02", "2013-01-31", "Brazil/ANBIMA")

Run the code above in your browser using DataLab