Skip to content

nnmf

Nonnegative Matrix Factorization

v1.4 · Apr 12, 2026 · GPL (>= 2)

Description

Nonnegative matrix factorization (NMF) is a technique to factorize a matrix with nonnegative values into the product of two matrices. Covariates are also allowed. Parallel computing is an option to enhance the speed and high-dimensional and large scale (and/or sparse) data are allowed. Relevant papers include: Wang Y. X. and Zhang Y. J. (2012). Nonnegative matrix factorization: A comprehensive review. IEEE Transactions on Knowledge and Data Engineering, 25(6): 1336-1353 <doi:10.1109/TKDE.2012.51> and Kim H. and Park H. (2008). Nonnegative matrix factorization based on alternating nonnegativity constrained least squares and active set method. SIAM Journal on Matrix Analysis and Applications, 30(2): 713-730 <doi:10.1137/07069239X>.

Downloads

CRAN

458

Last 30 days

8557th

1.6K

Last 90 days

2.6K

Last year

Trend: -9.5% (30d vs prior 30d)

r2u CRAN

42

Last 30 days

134

Last 90 days

156

Last year

Trend: -33.3% (30d vs prior 30d)

autoCRAN

2

Last 7 days

5

Last 30 days

0

All-time

autoCRAN-only: this name is served only by autoCRAN, so the count is exact.

CRAN Check Status

13 OK
Show all 13 flavors
Flavor Status
r-devel-linux-x86_64-debian-clang OK
r-devel-linux-x86_64-debian-gcc OK
r-devel-linux-x86_64-fedora-clang OK
r-devel-linux-x86_64-fedora-gcc OK
r-devel-windows-x86_64 OK
r-oldrel-macos-arm64 OK
r-oldrel-macos-x86_64 OK
r-oldrel-windows-x86_64 OK
r-patched-linux-x86_64 OK
r-release-linux-x86_64 OK
r-release-macos-arm64 OK
r-release-macos-x86_64 OK
r-release-windows-x86_64 OK

Check History

OK 12 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE Apr 25, 2026
NOTE 12 OK · 2 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE Apr 22, 2026
NOTE r-oldrel-macos-arm64

installed package size

installed size is  7.4Mb
  sub-directories of 1Mb or more:
    libs   7.2Mb
NOTE r-oldrel-macos-x86_64

installed package size

installed size is 13.1Mb
  sub-directories of 1Mb or more:
    libs  13.0Mb
ERROR 11 OK · 2 NOTE · 0 WARNING · 1 ERROR · 0 FAILURE Apr 18, 2026
ERROR r-devel-windows-x86_64

whether package can be installed

Installation failed.
See 'd:/Rcompile/CRANpkg/local/4.6/nnmf.Rcheck/00install.out' for details.
NOTE r-oldrel-macos-arm64

installed package size

installed size is  7.4Mb
  sub-directories of 1Mb or more:
    libs   7.2Mb
NOTE r-oldrel-macos-x86_64

installed package size

installed size is 13.1Mb
  sub-directories of 1Mb or more:
    libs  13.0Mb
NOTE 13 OK · 1 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE Mar 17, 2026
NOTE r-oldrel-macos-arm64

installed package size

installed size is  7.4Mb
  sub-directories of 1Mb or more:
    libs   7.2Mb
OK 14 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE Mar 11, 2026
ERROR 13 OK · 0 NOTE · 0 WARNING · 1 ERROR · 0 FAILURE Mar 10, 2026
ERROR r-devel-linux-x86_64-fedora-clang

examples

Running examples in ‘nnmf-Ex.R’ failed
The error most likely occurred in:

> ### Name: nmfqp.reg
> ### Title: NMF with covariates minimizing the Frobenius norm
> ### Aliases: nmfqp.reg
> 
> ### ** Examples
> 
> x <- as.matrix(iris[, 1:3])
> z <- model.matrix(x ~., data = iris[, 4:5])[, -1]
> mod <- nmfqp.reg(x, z, 2)
Error in quadprog::solve.QP(Dmat, dvec, dk, b0k) : 
  constraints are inconsistent, no solution!
Calls: nmfqp.reg -> <Anonymous>
Execution halted

Dependency Network

Dependencies Reverse dependencies Rcpp ClusterR Compositional Matrix osqp quadprog rangen Rfast Rglpk sparcl nnmf

Version History

5 tracked
updated 1.4 ← 1.3 diff Apr 12, 2026
updated 1.3 ← 1.1 diff Mar 17, 2026
new 1.1 Mar 10, 2026
updated 1.1 ← 1.0 diff Feb 2, 2026
new 1.0 Jan 8, 2026