Learn R Programming

bizdays (version 0.1.5)

bizdayse: Business days and current days equivalence

Description

bizdayse stands for business days equivalent, it returns the amount of business days equivalent to a given number of current days.

Usage

bizdayse(dates, curd, cal)

## S3 method for class 'character': bizdayse(dates, curd, cal = bizdays.options$get("default.calendar"))

## S3 method for class 'POSIXct': bizdayse(dates, curd, cal = bizdays.options$get("default.calendar"))

## S3 method for class 'POSIXlt': bizdayse(dates, curd, cal = bizdays.options$get("default.calendar"))

## S3 method for class 'Date': bizdayse(dates, curd, cal = bizdays.options$get("default.calendar"))

bizyearse(dates, curd, cal)

## S3 method for class 'character': bizyearse(dates, curd, cal = bizdays.options$get("default.calendar"))

## S3 method for class 'POSIXct': bizyearse(dates, curd, cal = bizdays.options$get("default.calendar"))

## S3 method for class 'POSIXlt': bizyearse(dates, curd, cal = bizdays.options$get("default.calendar"))

## S3 method for class 'Date': bizyearse(dates, curd, cal = bizdays.options$get("default.calendar"))

Arguments

dates
the initial date (or a vector of dates)
curd
the amount of current days (or a vector of numeric)
cal
an instance of Calendar

Examples

Run this code
data(holidaysANBIMA)
cal <- Calendar(holidaysANBIMA, dib=252)
bizdayse("2013-01-02", 3, cal)
bizyearse("2013-01-02", 3, cal)

Run the code above in your browser using DataLab