Learn R Programming

hstats (version 1.2.2)

dim.hstats_matrix: Dimensions of "hstats_matrix" Object

Description

Implies nrow() and ncol().

Usage

# S3 method for hstats_matrix
dim(x)

Value

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

Arguments

x

An object of class "hstats_matrix".

Examples

Run this code
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)

Run the code above in your browser using DataLab