Extracts dimnames of the "M" matrix in x. Implies rownames() and colnames().

# S3 method for class 'hstats_matrix'
dimnames(x)

Arguments

x

An object of class "hstats_matrix".

Value

Dimnames of the statistics matrix.

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_pairwise(s)
dimnames(x)
#> [[1]]
#> [1] "Petal.Width:Species"      "Petal.Length:Petal.Width"
#> [3] "Petal.Length:Species"    
#> 
#> [[2]]
#> [1] "Sepal.Length" "Sepal.Width" 
#> 
rownames(x)
#> [1] "Petal.Width:Species"      "Petal.Length:Petal.Width"
#> [3] "Petal.Length:Species"    
colnames(x)
#> [1] "Sepal.Length" "Sepal.Width"