stringdist
0.9.17Approximate String Matching, Fuzzy Text Search, and String Distance Functions
Overview
Implements an approximate string matching version of R's native 'match' function. Also offers fuzzy text search based on various string distance measures. 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. This package is built for speed and runs in parallel by using 'openMP'. An API for C or C++ is exposed as well. Reference: MPJ van der Loo (2014) doi:10.32614/RJ-2014-011.
Install
Health
- OK2026-06-0913 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE
- NOTE2026-06-0812 OK · 1 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE
- OK2026-03-1014 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE
Documentation
- Examples that run
- 100%
- Documented parameters
- 84%
- Return-value docs
- 100%
- References docs
- 19%
Downloads
Repository
Repository practices
1 development-tooling and community-health practice detected across 1 family in the upstream repository
Checks run against github.com/markvanderloo/stringdist on 2026-07-19.
Dependencies
and 79 more packages.
Code & Tests
- Cyclomatic complexity
- 2.0 median / 15 max
- Test cases
- 447 / 0.00 per code line
Test coverage
Line coverage
90%
Expression
88.6%
Tests / Examples
90.0% / 76% ex
Functions
93 19 exported
Complexity
3.7 avg / 15 max
Call network
93 nodes / 125 edges
Call graph
Open call graph →Lowest coverage
93 functions| Function | Cyclo | Coverage |
|---|---|---|
| ain exp | 1 | 0% |
| .onLoad | 7 | 0% |
| lengths.list | 1 | 0% |
| setnames | 2 | 57% |
| ensure_int_list | 4 | 80% |
| qgrams exp | 8 | 88% |
People & History
39 releases. Pick two to compare their code metrics. R releases are shown for context.
- RR 4.6.0 released · 2026-04-24
- 0.9.17Latest
- RR 4.5.0 released · 2025-04-11
- 0.9.152025-01-10 · diff ↗
- 0.9.142024-12-10 · diff ↗
- RR 4.4.0 released · 2024-04-24
- 0.9.122023-11-28 · diff ↗
- RR 4.3.0 released · 2023-04-21
- 0.9.102022-11-07 · diff ↗
- 0.9.92022-10-20 · diff ↗
- RR 4.2.0 released · 2022-04-22
- 0.9.82021-09-09 · diff ↗
- 0.9.72021-07-28 · diff ↗
- RR 4.1.0 released · 2021-05-18
- 0.9.6.32020-10-09 · diff ↗
- 0.9.62020-07-16 · diff ↗
Show 38 earlier events
- RR 4.0.0 released · 2020-04-24
- 0.9.5.52019-10-21 · diff ↗
- 0.9.5.32019-10-11 · diff ↗
- 0.9.5.22019-06-06 · diff ↗
- RR 3.6.0 released · 2019-04-26
- 0.9.5.12018-06-08 · diff ↗
- 0.9.5.02018-06-07 · diff ↗
- RR 3.5.0 released · 2018-04-23
- 0.9.4.72018-03-13 · diff ↗
- 0.9.4.62017-07-31 · diff ↗
- 0.9.4.52017-07-28 · diff ↗
- RR 3.4.0 released · 2017-04-21
- 0.9.4.42016-12-16 · diff ↗
- 0.9.4.22016-09-09 · diff ↗
- RR 3.3.0 released · 2016-05-03
- 0.9.4.12016-01-02 · diff ↗
- 0.9.42015-10-26 · diff ↗
- 0.9.32015-08-21 · diff ↗
- 0.9.22015-06-24 · diff ↗
- 0.9.12015-06-22 · diff ↗
- RR 3.2.0 released · 2015-04-16
- 0.9.02015-01-10 · diff ↗
- 0.8.22014-12-16 · diff ↗
- 0.8.12014-10-07 · diff ↗
- 0.8.02014-08-08 · diff ↗
- 0.7.32014-05-16 · diff ↗
- RR 3.1.0 released · 2014-04-10
- 0.7.22014-03-02 · diff ↗
- 0.7.02013-09-06 · diff ↗
- 0.6.12013-08-09 · diff ↗
- 0.6.02013-07-19 · diff ↗
- 0.5.02013-06-21 · diff ↗
- 3.0.12013-04-28 · diff ↗
- RR 3.0.0 released · 2013-04-03
- 3.0.02013-04-02 · diff ↗
- 0.4-22013-02-11 · diff ↗
- 0.4-02013-02-07
- RR 2.15.0 released · 2012-03-30
Package metadata
- First published
- 2013-02-07
- Total releases
- 39 / 13 yrs
- License
- GPL-3 OSI
- Minimum R
- ≥ 2.15.3
- Download size
- 843 KB
- Installed size
- not tracked yet
- With dependencies
- not tracked yet