# Inspect a Sparse Matrix with Large Dimensions

Datamonger for R · 0.2.0

[Source](<https://github.com/jolars/datamonger/blob/fbf4417f4d75b63acbb7eb39975add7aedbff2f6/packages/r/R/decode-common.R>)

```r
print.datamonger_csr_matrix(x, ...)
```

<a id="inspect-a-sparse-matrix-with-large-dimensions"></a>

## Inspect a Sparse Matrix with Large Dimensions

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.


<a id="usage"></a>

## Usage

```r
dim.datamonger_csr_matrix(x)
```

```r
print.datamonger_csr_matrix(x, ...)
```

<a id="arguments"></a>

## Arguments

`x`

A `datamonger_csr_matrix` returned as sparse dataset features.

`...`

Additional arguments, ignored by the print method.

<a id="value"></a>

## Value

`dim()` returns a numeric vector containing the row and column counts, in
that order. `print()` returns `x` invisibly.


<a id="details"></a>

## 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.


<a id="see-also"></a>

## See also

[`fetch_data()`](<fetch_data>)
