rsvd: Randomized Singular Value Decomposition

Computes low-rank matrix approximations for dimension reduction, data analysis, and compression. Randomized algorithms use random weighted combinations of the input to find a small subspace, then factorize the projected matrix. This can reduce the work when the requested rank is small relative to the matrix dimensions and the input has a useful low-rank approximation. Methods include singular value decomposition, principal component analysis, QB factorization, and interpolative and CUR decompositions. Robust principal component analysis separates a matrix into low-rank and entrywise sparse components. Selected routines support sparse matrices, including principal component analysis with implicit centering and scaling. Plotting functions display scores, loadings, and explained variance. See Erichson et al. (2019) <doi:10.18637/jss.v089.i11> for the algorithms and examples of their use.

Getting started

Package details

AuthorN. Benjamin Erichson [aut, cre]
MaintainerN. Benjamin Erichson <erichson@icsi.berkeley.edu>
LicenseGPL (>= 3)
Version2.0.0
URL https://github.com/erichson/rSVD 
Package repositoryView on CRAN
Installation Install the latest version of this package by entering the following in R:
install.packages("rsvd")

Try the rsvd package in your browser

Any scripts or data that you put into this service are public.

rsvd documentation built on Nov. 2, 2026, 5:06 p.m.