| dim.HDF5Matrix | R Documentation |
Dimensions of an HDF5Matrix
## S3 method for class 'HDF5Matrix'
dim(x)
x |
An |
Integer vector c(nrows, ncols)
tmp <- tempfile(fileext = ".h5")
X <- hdf5_create_matrix(tmp, "data/matrix", data = matrix(rnorm(100), 10, 10))
X <- hdf5_matrix(tmp, "data/matrix")
dim(X) # c(10, 10)
nrow(X) # 10
ncol(X) # 10
X$close()
unlink(tmp)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.