Crandore Hub

dbMatrix

Database-Backed Matrix Classes and Operations

Provides S4 classes and methods for storing dense and sparse matrices in 'DuckDB' databases. The package supports constructing database-backed matrices from base R and 'Matrix' objects, extracting slices and summaries, performing arithmetic and selected linear algebra operations, and materializing results for larger-than-memory workflows. It integrates with 'dbProject' to keep database paths, live connections, and lazy matrix tables synchronized across interactive analyses.

README

<!-- README.md is generated from README.Rmd. Please edit that file -->

# dbMatrix

<!-- badges: start -->

[![Lifecycle:
experimental](https://img.shields.io/badge/lifecycle-experimental-orange.svg)](https://lifecycle.r-lib.org/articles/stages.html#experimental)
[![CRAN
status](https://www.r-pkg.org/badges/version/dbMatrix)](https://CRAN.R-project.org/package=dbMatrix)

<!-- badges: end -->

`{dbMatrix}` is a core package in the
[`dbverse`](https://dbverse-org.github.io/dbverse/) library.

The goal of `{dbMatrix}` is to support larger-than-memory matrix
computations.

**Note: Work in progress! Bugs or unexpected behavior are likely to
occur. We welcome user feedback and reporting issues on the [Github
page](https://github.com/dbverse-org/dbmatrix-r/).**

## Installation

You can install the development version of dbMatrix from Github like so:

``` r
# install.packages("pak", repos = sprintf("https://r-lib.github.io/p/pak/stable/%s/%s/%s", .Platform$pkgType, R.Version()$os, R.Version()$arch))
pak::pak("dbverse-org/dbmatrix-r")
```

Versions across snapshots

VersionRepositoryFileSize
0.1.0 rolling linux/jammy R-4.5 dbMatrix_0.1.0.tar.gz 601.1 KiB
0.1.0 rolling linux/noble R-4.5 dbMatrix_0.1.0.tar.gz 601.1 KiB
0.1.0 rolling source/ R- dbMatrix_0.1.0.tar.gz 601.1 KiB
0.1.0 latest linux/jammy R-4.5 dbMatrix_0.1.0.tar.gz 601.1 KiB
0.1.0 latest linux/noble R-4.5 dbMatrix_0.1.0.tar.gz 601.1 KiB
0.1.0 latest source/ R- dbMatrix_0.1.0.tar.gz 601.1 KiB
0.1.0 2026-04-23 source/ R- dbMatrix_0.1.0.tar.gz 0 B

Dependencies (latest)

Imports

LinkingTo

Suggests