Returns a sequence of dates with business days only.

bizseq(from, to, cal)

Arguments

from

the initial date

to

the final date (must be greater than from)

cal

the calendar's name

Value

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

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

bizseq("2013-01-02", "2013-01-31", "Brazil/ANBIMA")
#>  [1] "2013-01-02" "2013-01-03" "2013-01-04" "2013-01-07" "2013-01-08"
#>  [6] "2013-01-09" "2013-01-10" "2013-01-11" "2013-01-14" "2013-01-15"
#> [11] "2013-01-16" "2013-01-17" "2013-01-18" "2013-01-21" "2013-01-22"
#> [16] "2013-01-23" "2013-01-24" "2013-01-25" "2013-01-28" "2013-01-29"
#> [21] "2013-01-30" "2013-01-31"