Checks whether object inherits from InterestRate class

is.InterestRate(x)

Arguments

x

an R object

Value

TRUE if x inherits from the InterestRate class; otherwise FALSE

Examples

is.InterestRate(InterestRate(0.04, 2, "act/365"))
#> [1] TRUE