check if the object is of conso class

is.conso(x)

Arguments

x

any R object

Value

TRUE or FALSE

Author

Jaunatre Maxime <maxime.jaunatre@yahoo.fr>

Examples

t <- tank(12,200) d <- dive(20, 40) c <- conso(d, t)
#> Warning: No tank is available between 40 and 41.7 minutes so you died. Try again !
#> Warning: No tank is available between 41.7 and 44.7 minutes so you died. Try again !
#> Warning: No tank is available between 44.7 and 45.2 minutes so you died. Try again !
#> [1] FALSE
is.tank('conso')
#> [1] FALSE