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.


dbMatrix

Lifecycle:experimental CRANstatus

{dbMatrix} is a core package in the 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.

Installation

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

# 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")

Reference manual

It appears you don't have a PDF plugin for this browser. You can click here to download the reference manual.

install.packages("dbMatrix")

0.1.0 by Edward C. Ruiz, 5 months ago


https://github.com/dbverse-org/dbmatrix-r, https://dbverse-org.github.io/dbmatrix-r/


Report a bug at https://github.com/dbverse-org/dbmatrix-r/issues


Browse source code at https://github.com/cran/dbMatrix


Authors: Edward C. Ruiz [aut, cre] (ORCID: , Jiaji George Chen [aut] , Ruben Dries [aut]


Documentation:   PDF Manual  


GPL-3 license


Imports Matrix, MatrixGenerics, methods, DBI, dplyr, dbplyr, duckdb, data.table, glue, bit64, cli, Rcpp, arrow, nanoarrow, dbProject, rlang

Suggests knitr, rmarkdown, testthat, irlba, crayon, R.utils, checkmate, reticulate, sparseMatrixStats, RSpectra

Linking to Rcpp, RcppEigen, RSpectra, nanoarrow


Suggested by dbProject.


See at CRAN