Learn R Programming

bizdays (version 0.1.4)

bizseq: Create a sequence of business days.

Description

This function returns a sequence of business days according to the given calendar.

Usage

bizseq(from, to, cal)

## S3 method for class 'character': bizseq(from, to, cal = bizdays.options$get("default.calendar"))

## S3 method for class 'POSIXct': bizseq(from, to, cal = bizdays.options$get("default.calendar"))

## S3 method for class 'POSIXlt': bizseq(from, to, cal = bizdays.options$get("default.calendar"))

## S3 method for class 'Date': bizseq(from, to, cal = bizdays.options$get("default.calendar"))

Arguments

from
the initial date
to
the final date. This date must be greater that the initial date
cal
an instance of Calendar

Examples

Run this code
data(holidaysANBIMA)
cal <- Calendar(holidaysANBIMA)
bizseq("2013-01-02", "2013-01-31", cal)

Run the code above in your browser using DataLab