dimnames<-.hstats_matrix {hstats} | R Documentation |
Dimnames (Replacement Method) of "hstats_matrix"
Description
This implies colnames(x) <- ...
.
Usage
## S3 replacement method for class 'hstats_matrix'
dimnames(x) <- value
Arguments
x |
An object of class "hstats_matrix". |
value |
A list with rownames and column names compliant with |
Value
Like x
, but with replaced dimnames.
Examples
fit <- lm(as.matrix(iris[1:2]) ~ Petal.Length + Petal.Width * Species, data = iris)
s <- hstats(fit, X = iris[3:5], verbose = FALSE)
x <- h2_overall(s)
colnames(x) <- c("Sepal Length", "Sepal Width")
plot(x)
rownames(x)[2:3] <- c("Petal Width", "Petal Length")
plot(x)
[Package hstats version 1.2.0 Index]