| length.HDF5Matrix | R Documentation |
Returns the total number of elements in an HDF5Matrix object,
defined as prod(dim(x)) — consistent with the behaviour of
base::length() for ordinary R matrices.
## S3 method for class 'HDF5Matrix'
length(x)
x |
An |
A single integer: nrow(x) * ncol(x).
tmp <- tempfile(fileext = ".h5")
X <- hdf5_create_matrix(tmp, "data/m", data = matrix(1:100, 10, 10))
length(X) # 100
close(X); unlink(tmp)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.