dimnames<-.shapviz | R Documentation |
This implies colnames(x) <- ...
.
## S3 replacement method for class 'shapviz'
dimnames(x) <- value
x |
An object of class "shapviz". |
value |
A list with rownames and column names compliant with SHAP matrix. |
Like x
, but with replaced dimnames.
shapviz()
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))
x <- shapviz(S, X, baseline = 4)
dimnames(x) <- list(1:2, c("a", "b"))
dimnames(x)
colnames(x) <- c("x", "y")
colnames(x)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.