Learn R Programming

shapviz (version 0.9.5)

is.shapviz: Check for shapviz

Description

Is object of class "shapviz"?

Usage

is.shapviz(object)

Value

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

Arguments

object

An R object.

See Also

shapviz()

Examples

Run this code
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)
is.shapviz("a")

Run the code above in your browser using DataLab