From 6f94a3e5f599d2fb1a70ed8297576b39658ebed2 Mon Sep 17 00:00:00 2001 From: Ricardo Wurmus Date: Sat, 14 Dec 2019 10:55:01 +0100 Subject: [PATCH] gnu: Add r-activityindex. * gnu/packages/cran.scm (r-activityindex): New variable. --- gnu/packages/cran.scm | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) diff --git a/gnu/packages/cran.scm b/gnu/packages/cran.scm index 259fa1d3e9..4ff97d350c 100644 --- a/gnu/packages/cran.scm +++ b/gnu/packages/cran.scm @@ -18023,3 +18023,28 @@ (define-public r-activitycounts accelerometer brands. The code creates ActiLife counts from raw acceleration data for different accelerometer brands.") (license license:gpl3))) + +(define-public r-activityindex + (package + (name "r-activityindex") + (version "0.3.6") + (source + (origin + (method url-fetch) + (uri (cran-uri "ActivityIndex" version)) + (sha256 + (base32 + "14k6d78s15j7kb7jhixf4msrdjdl28d0r264cbvy41p8dkq7ysvk")))) + (properties `((upstream-name . "ActivityIndex"))) + (build-system r-build-system) + (propagated-inputs + `(("r-data-table" ,r-data-table) + ("r-matrixstats" ,r-matrixstats) + ("r-r-utils" ,r-r-utils))) + (home-page "https://cran.r-project.org/web/packages/ActivityIndex/") + (synopsis "Activity Index calculation using raw accelerometry data") + (description + "This is a package to read raw accelerometry from GT3X+ accelerometry +data and plain table data to calculate the Activity Index from Bai et +al. (2016) @url{doi:10.1371/journal.pone.0160644}.") + (license license:gpl3)))