diff options
author | Ricardo Wurmus <rekado@elephly.net> | 2017-11-06 18:48:20 +0100 |
---|---|---|
committer | Ricardo Wurmus <rekado@elephly.net> | 2017-11-07 08:15:27 +0100 |
commit | a40a04fdbba525a079c4291b81036705921eb076 (patch) | |
tree | 3bb2f973f57fa8ef07dd889d5597611257e691b0 /gnu | |
parent | 8ca2b2b06e69921f24808aa0cb504a18156066b6 (diff) | |
download | guix-a40a04fdbba525a079c4291b81036705921eb076.tar.gz guix-a40a04fdbba525a079c4291b81036705921eb076.zip |
gnu: Add r-stringdist.
* gnu/packages/cran.scm (r-stringdist): New variable.
Diffstat (limited to 'gnu')
-rw-r--r-- | gnu/packages/cran.scm | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/gnu/packages/cran.scm b/gnu/packages/cran.scm index a7b9a931b5..609d6648e7 100644 --- a/gnu/packages/cran.scm +++ b/gnu/packages/cran.scm @@ -1289,3 +1289,27 @@ addition, corrplot is good at details, including choosing color, text labels, color labels, layout, etc.") ;; Any version of the GPL (license license:gpl2+))) + +(define-public r-stringdist + (package + (name "r-stringdist") + (version "0.9.4.6") + (source + (origin + (method url-fetch) + (uri (cran-uri "stringdist" version)) + (sha256 + (base32 + "0j5b7hr53nr9xq44famkpwzi4khix93ffani5pwldqkf8bpdvhci")))) + (build-system r-build-system) + (home-page "https://github.com/markvanderloo/stringdist") + (synopsis "Approximate string matching and string distance functions") + (description + "This package implements an approximate string matching version of R's +native @code{match} function. It can calculate various string distances based +on edits (Damerau-Levenshtein, Hamming, Levenshtein, optimal sting alignment), +qgrams (q- gram, cosine, jaccard distance) or heuristic metrics (Jaro, +Jaro-Winkler). An implementation of soundex is provided as well. Distances +can be computed between character vectors while taking proper care of encoding +or between integer vectors representing generic sequences.") + (license license:gpl3+))) |