Learn R Programming

RcppPlanc (version 2.0.13)

dim.H5SpMat: Retrieve the dimension of H5SpMat argument list

Description

Retrieve the dimension of H5SpMat argument list

Usage

# S3 method for H5SpMat
dim(x)

# S3 method for H5SpMat dim(x) <- value

Value

Retriever returns a vector of two (nrow and ncol), setter sets the value of that in the argument list.

Arguments

x

H5SpMat argument list object

value

Numeric vector of two, for number of rows and number of columns.

Examples

Run this code
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