Subject: [bug#59870] [PATCH 05/12] gnu: Add r-timeseries.

From: Mădălin Ionel Patrașcu<[email-masked]>
Date: Wed, 7 Dec 2022 06:18:30 +0100

* gnu/packages/cran.scm (r-timeseries): New variable.
---
 gnu/packages/cran.scm | 22 ++++++++++++++++++++++
 1 file changed, 22 insertions(+)

diff --git a/gnu/packages/cran.scm b/gnu/packages/cran.scm
index bb163aa47a..36c1d72a66 100644
--- a/gnu/packages/cran.scm
+++ b/gnu/packages/cran.scm
@@ -7357,6 +7357,28 @@ (define-public r-processx
 timeout.  It can also poll several processes at once.")
     (license license:expat)))
 
+(define-public r-timeseries
+  (package
+    (name "r-timeseries")
+    (version "4021.105")
+    (source (origin
+              (method url-fetch)
+              (uri (cran-uri "timeSeries" version))
+              (sha256
+               (base32
+                "1k6vihbs20m7zjrxh13y9mmsvnia3844c7j13p0b7m5i9fb6rqxz"))))
+    (properties `((upstream-name . "timeSeries")))
+    (build-system r-build-system)
+    (propagated-inputs (list r-timedate))
+    (home-page
+     "https://r-forge.r-project.org/scm/viewvc.php/pkg/timeSeries/?root=rmetrics")
+    (synopsis "Metrics for financial time series objects")
+    (description
+     "This package implements S4 classes and various tools for financial time series.
+Basic functions such as scaling and sorting, subsetting, mathematical operations
+and statistical functions are provided.")
+    (license license:gpl2+)))
+
 (define-public r-tsp
   (package
     (name "r-tsp")
-- 
2.38.1