Checks whether object inherits from DiscountFactor class

is.DiscountFactor(x)

Arguments

x

an R object

Value

TRUE if x inherits from the DiscountFactor class; otherwise FALSE

Examples

is.DiscountFactor(DiscountFactor(0.97, Sys.Date(), Sys.Date() + 30))
#> [1] TRUE