powered by
Retrieve the dimension of H5SpMat argument list
# S3 method for H5SpMat dim(x)# S3 method for H5SpMat dim(x) <- value
# S3 method for H5SpMat dim(x) <- value
Retriever returns a vector of two (nrow and ncol), setter sets the value of that in the argument list.
H5SpMat argument list object
Numeric vector of two, for number of rows and number of columns.
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
Run the code above in your browser using DataLab