summaryrefslogtreecommitdiff
path: root/gnu
diff options
context:
space:
mode:
authorRicardo Wurmus <rekado@elephly.net>2020-10-05 22:09:20 +0200
committerRicardo Wurmus <rekado@elephly.net>2020-10-06 00:34:56 +0200
commitb0728c4d7e24da01dd44d654e2cdbaf29bc2b821 (patch)
treef70345ccfeec57c03d1213c001deff52179f37fe /gnu
parent64d4816881baf25432ec9ffaaf151023fd0f115c (diff)
gnu: Add r-slider.
* gnu/packages/cran.scm (r-slider): New variable.
Diffstat (limited to 'gnu')
-rw-r--r--gnu/packages/cran.scm28
1 files changed, 28 insertions, 0 deletions
diff --git a/gnu/packages/cran.scm b/gnu/packages/cran.scm
index e4ddd87649..92ce7287c4 100644
--- a/gnu/packages/cran.scm
+++ b/gnu/packages/cran.scm
@@ -23800,6 +23800,34 @@ used in further calculations that rely on a specific temporal spacing between
observations.")
(license license:expat)))
+(define-public r-slider
+ (package
+ (name "r-slider")
+ (version "0.1.5")
+ (source
+ (origin
+ (method url-fetch)
+ (uri (cran-uri "slider" version))
+ (sha256
+ (base32
+ "1x4jwfxam4czfkb1s5qds5krfw1h2p5a4rh6f5z4yvhsv0d81xck"))))
+ (properties `((upstream-name . "slider")))
+ (build-system r-build-system)
+ (propagated-inputs
+ `(("r-glue" ,r-glue)
+ ("r-rlang" ,r-rlang)
+ ("r-vctrs" ,r-vctrs)
+ ("r-warp" ,r-warp)))
+ (native-inputs `(("r-knitr" ,r-knitr)))
+ (home-page "https://github.com/DavisVaughan/slider")
+ (synopsis "Sliding window functions")
+ (description
+ "This package provides type-stable rolling window functions over any R
+data type. Cumulative and expanding windows are also supported. For more
+advanced usage, an index can be used as a secondary vector that defines how
+sliding windows are to be created.")
+ (license license:expat)))
+
(define-public r-rsample
(package
(name "r-rsample")