A new release of stringdist has been accepted on CRAN.
stringdist offers a number of popular distance functions between sequences of integers or characters that are independent of character encoding.
- bugfix: edge case for zero-size for lower tridiagonal dist matrices (caused UBSAN to fire, but gave correct results).
- bugfix in jw distance: not symmetric for certain cases (thanks to github user gtumuluri)
stringdist can compute distances between integer sequences, and you can use hashr to compute an integer representation of any (sequence of) R objects, based on the superFastHash algorithm of Paul Hsieh.
- new functions computing distances between integer sequences:
- new function for tokenizing integer sequences:
- new function for matching integer sequences:
- q-gram based distances are now always 0 when q=0 (used to be Inf if at least one of the arguments was not the empty string)
- stringdist, stringdistmatrix now emit warning when presented with
- small c-side code optimizations
- bugfix in dl, lv, osa distance: weights were not taken into account properly (thanks to Zach Price)
All code on github.