fmdates (version 0.1.4)

is_valid_bdc: Business day conventions

Description

Checks whether business day conventions are valid.

Usage

is_valid_bdc(bdc)

Arguments

bdc

a character vector

Value

a flag (TRUE or FALSE) if all the supplied business day conventions are supported.

Details

The supported day conventions are:

  • u - unadjusted. No adjustments made to a date.

  • f - following. The date is adjusted to the following business day.

  • mf - modified following. As per following convention. However, if the following business day is in the month following the date, then the date is adjusted to the preceding business day.

  • p - preceding. The date is adjusted to the preceding business day.

  • mp - modified preceding. As per preceding convention. However, if the preceding business day is in the month prior to the date, then the date is adjusted to the following business day.

  • ms - modified succeeding. This convention applies to Australian bank bills. Australian bank bills' maturities defined as either early (prior to the 15th) or late month (after the 15th). If the maturity date calculated straight from a bill's term crosses either the end of the month or the 15th of the month, the bill's maturity is adjusted to the preceding business day.

See Also

Other calendar methods: adjust, generate_schedule, is_good, is, locale, shift, tz