Datamonger for R · r · 0.0.0.9000
Inspect a Sparse Matrix with Large Dimensions
dim.datamonger_csr_matrix
Source: packages/r/R/decode-common.R, packages/r/man/csr-matrix.Rd
Datamonger normally returns sparse features as a row-compressed Matrix.
When a declared dimension exceeds the Matrix integer limit, it returns
a datamonger_csr_matrix that retains the exact dimensions and CSR arrays.
These methods report its dimensions and a compact summary without allocating
a dense matrix.
Usage
Arguments
xA
datamonger_csr_matrixreturned as sparse dataset features....Additional arguments, ignored by the print method.
Details
The object contains rows and columns, zero-based
row_offsets and column_indices, and float64 values.
The print method reports the dimensions and the number of stored values.
Value
dim() returns a numeric vector containing the row and column counts,
in that order. print() returns x invisibly.
See also
Help topic: datamonger_csr_matrix
S3 generic: base::dim
