dim.H5SpMat | R Documentation |
Retrieve the dimension of H5SpMat argument list
## S3 method for class 'H5SpMat'
dim(x)
## S3 replacement method for class 'H5SpMat'
dim(x) <- value
x |
H5SpMat argument list object |
value |
Numeric vector of two, for number of rows and number of columns. |
Retriever returns a vector of two (nrow and ncol), setter sets the value of that in the argument list.
h <- H5SpMat(system.file("extdata/ctrl_sparse.h5", package = "RcppPlanc"),
"data", "indices", "indptr", 173, 300)
dim(h)
nrow(h)
ncol(h)
dim(h) <- c(200, 200)
h
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.