Is object of class "shapviz"?

is.shapviz(object)

Arguments

object

An R object.

Value

Returns TRUE if object has "shapviz" among its classes, and FALSE otherwise.

See also

Examples

S <- matrix(c(1, -1, -1, 1), ncol = 2, dimnames = list(NULL, c("x", "y")))
X <- data.frame(x = c("a", "b"), y = c(100, 10))
shp <- shapviz(S, X)
is.shapviz(shp)
#> [1] TRUE
is.shapviz("a")
#> [1] FALSE