summaryrefslogtreecommitdiff
path: root/gnu
diff options
context:
space:
mode:
authorLaurent Gatto <lgatto@protonmail.ch>2026-02-22 21:12:20 +0100
committerSimon Tournier <zimon.toutoune@gmail.com>2026-02-24 17:50:52 +0100
commit0be8d5caea065298ca11babdaeb8e51b6981f424 (patch)
tree5ca80f96e0e23fcbd924c1367255df3adb242a28 /gnu
parent4458d075adaa9ebc5739e07195db03fa0d93b13b (diff)
gnu: Add r-nipals.
* gnu/packages/cran.scm (r-nipals): New variable. Change-Id: I1624257c2e72028bc010ed9910dbae86c743f7b4 Signed-off-by: Simon Tournier <zimon.toutoune@gmail.com> Merges: guix/guix!6634
Diffstat (limited to 'gnu')
-rw-r--r--gnu/packages/cran.scm24
1 files changed, 24 insertions, 0 deletions
diff --git a/gnu/packages/cran.scm b/gnu/packages/cran.scm
index efc63f5c9b4..658de3893c5 100644
--- a/gnu/packages/cran.scm
+++ b/gnu/packages/cran.scm
@@ -44,6 +44,7 @@
;;; Copyright © 2025 Jonas Freimuth <jonas.freimuth@posteo.de>
;;; Copyright © 2026 Cayetano Santos <csantosb@inventati.org>
;;; Copyright © 2026 Yarl Baudig <yarl-baudig@mailoo.org>
+;;; Copyright © 2026 Laurent Gatto <lgatto@protonmail.ch>
;;;
;;; This file is part of GNU Guix.
;;;
@@ -5791,6 +5792,29 @@ data.")
can read and write both the metadata and the cell data in a Sheet.")
(license license:expat)))
+(define-public r-nipals
+ (package
+ (name "r-nipals")
+ (version "1.0")
+ (source
+ (origin
+ (method url-fetch)
+ (uri (cran-uri "nipals" version))
+ (sha256
+ (base32 "1aasm7ifnlxwaywq0g7v5m2w6jl7kld08k9gn3vbsm43wnpp0ahw"))))
+ (properties `((upstream-name . "nipals")))
+ (build-system r-build-system)
+ (native-inputs (list r-knitr r-testthat))
+ (home-page "https://kwstat.github.io/nipals/")
+ (synopsis "Principal Components Analysis using NIPALS or weighted EMPCA")
+ (description
+ "This package provides Principal Components Analysis (PCA) of matrix
+using Non-linear Iterative Partial Least Squares (NIPALS) or weighted
+Expectation Maximization PCA (EMPCA) with Gram-Schmidt orthogonalization of
+the scores and loadings. See Andrecut (2009)
+@url{doi:10.1089/cmb.2008.0221}.")
+ (license license:expat)))
+
(define-public r-pbapply
(package
(name "r-pbapply")