Check if an R object is of or derives from the class persephone or convert an object to persephone

is.persephone(x)

as.persephone(x)

Arguments

x

R object to be tested or converted.

Examples

is.persephone(2)
#> [1] FALSE
obj <- as.persephone(AirPassengers)
obj$run()