gnu: Add r-fastdummies.

* gnu/packages/cran.scm (r-fastdummies): New variable.
This commit is contained in:
Ricardo Wurmus 2023-03-15 18:25:09 +01:00
parent 953d808d28
commit eb467fe231
No known key found for this signature in database
GPG key ID: 197A5888235FACAC

View file

@ -3427,6 +3427,30 @@ (define-public r-rjson
and vice-versa.")
(license license:gpl2+)))
(define-public r-fastdummies
(package
(name "r-fastdummies")
(version "1.6.3")
(source (origin
(method url-fetch)
(uri (cran-uri "fastDummies" version))
(sha256
(base32
"1pw1bpp69sbs8yc1s5ffz11q249ljfwbgfrq6irg5pyp37z38fdx"))))
(properties `((upstream-name . "fastDummies")))
(build-system r-build-system)
(propagated-inputs (list r-data-table r-stringr r-tibble))
(native-inputs (list r-knitr))
(home-page "https://github.com/jacobkap/fastDummies")
(synopsis "Create dummy columns and rows from categorical variables")
(description
"This package creates dummy columns from columns that have categorical
variables (character or factor types). You can also specify which columns to
make dummies out of, or which columns to ignore. Also creates dummy rows from
character, factor, and Date columns. This package provides a significant
speed increase from creating dummy variables through @code{model.matrix()}.")
(license license:expat)))
(define-public r-fastmap
(package
(name "r-fastmap")