This function returns TRUE for tidyrisk_scenario (or subclasses) and FALSE for all other objects.

is_tidyrisk_scenario(x)

Arguments

x

An object

Value

TRUE if the object inherits from the tidyrisk_scenario class.