Description Usage Arguments Value See Also Examples
Returns the number of nodes.
1 | nNodes(x)
|
x |
Either a |
The number of nodes.
ColumnLinkedMatrix-class
,
RowLinkedMatrix-class
, and LinkedMatrix-class
for more information on the ColumnLinkedMatrix
,
RowLinkedMatrix
, and LinkedMatrix
classes.
1 2 3 4 5 6 7 8 9 10 | # 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)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.