is_valid_day_basis: Day basis conventions

Description Usage Arguments Value See Also Examples

View source: R/dates.R

Description

Checks whether day basis conventions are valid. Supported day basis conventions are documented in [yearfrac()]

Usage

1
is_valid_day_basis(day_basis)

Arguments

day_basis

A character vector of day basis conventions.

Value

will return 'TRUE' for 'day_basis' elements that are any of the following: 30/360, 30/360us, 30e/360, 30e/360isda, 30e+/360, act/360, act/365 and act/actisda. Otherwise will return 'FALSE'

See Also

Other counter methods: actual_360, actual_365, actual_actual_isda, thirty_360_eu_isda, thirty_360_eu_plus, thirty_360_eu, thirty_360_us, thirty_360, yearfrac

Examples

1
is_valid_day_basis(c("act/360", "act/365f"))

ThVWh/ralibr documentation built on April 4, 2018, 4:41 a.m.