Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

LinkedMatrix-class

A Class Union of ColumnLinkedMatrix and RowLinkedMatrix


Description

This class is abstract and no objects can be created from it. It can be used to check whether an object is either of type ColumnLinkedMatrix or of type RowLinkedMatrix using is(x, "LinkedMatrix") and to assign methods for both ColumnLinkedMatrix and RowLinkedMatrix classes, e.g. show.

Methods

  • length

  • as.matrix

  • show

  • initialize

See Also

ColumnLinkedMatrix-class and RowLinkedMatrix-class for implementations of column-linked and row-linked matrices.

Examples

# Create an example RowLinkedMatrix from various matrix-like objects that
# correspond in dimensions
m <- RowLinkedMatrix(
    ff::ff(initdata = rnorm(50), dim = c(5, 10)),
    bigmemory::big.matrix(init = rnorm(50), nrow = 5, ncol = 10),
    matrix(data = rnorm(50), nrow = 5, ncol = 10)
)

# Test if m is an object of either type ColumnLinkedMatrix or RowLinkedMatrix
if (is(m, "LinkedMatrix")) {
    message("m is a LinkedMatrix")
}

LinkedMatrix

Column-Linked and Row-Linked Matrices

v1.4.0
MIT + file LICENSE
Authors
Gustavo de los Campos [aut], Alexander Grueneberg [aut, cre]
Initial release

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.