Learn R Programming

Matrix (version 0.999375-42)

modelMatrix-class: Class "modelMatrix" and SubClasses

Description

The class "modelMatrix" and notably its subclass "dsparseModelMatrix" are used to encode additional information, analogously to what the standard Rfunction model.matrix() returns.

Arguments

Objects from the Classes

Only "dsparseModelMatrix" and "ddenseModelMatrix" are actual (aka non-virtual) classes. For these, objects can be created by calls of the form new("dsparseModelMatrix", x, assign, contrast), where x is a dgCMatrix classed object.

Extends

"dsparseModelMatrix" extends class "dgCMatrix" directly, "ddenseModelMatrix" extends class "dgeMatrix" directly.

See Also

sparse.model.matrix will return a "dsparseModelMatrix" object. model.Matrix which is a simple wrapper around the traditional model.matrix and returns a "ddenseModelMatrix" object.

Examples

Run this code
showClass("modelMatrix")
showClass("dsparseModelMatrix")

## see   example(model.Matrix)

Run the code above in your browser using DataLab