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

nNodes

Returns the Number of Nodes


Description

Returns the number of nodes.

Usage

nNodes(x)

Arguments

x

Either a ColumnLinkedMatrix or a RowLinkedMatrix object.

Value

The number of nodes.

See Also

ColumnLinkedMatrix-class, RowLinkedMatrix-class, and LinkedMatrix-class for more information on the ColumnLinkedMatrix, RowLinkedMatrix, and LinkedMatrix classes.

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)
)

# Get the number of nodes of the RowLinkedMatrix
nNodes(m)

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.