dim.hstats_matrix {hstats}R Documentation

Dimensions of "hstats_matrix" Object

Description

Implies nrow() and ncol().

Usage

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

Arguments

x

An object of class "hstats_matrix".

Value

A numeric vector of length two providing the number of rows and columns of "M" object stored in x.

Examples

fit <- lm(Sepal.Length ~ . + Petal.Width:Species, data = iris)
s <- hstats(fit, X = iris[-1])
x <- h2_pairwise(s)
dim(x)
nrow(x)
ncol(x)

[Package hstats version 1.1.2 Index]