Mentioned in Awesome Official Statistics


The package offers the following main functions:

These functions are built upon C-code that re-implements some common (weighted) string distance functions. Distance functions include:

Also, there are some utility functions:


Some of stringdist's underlying C functions can be called directly from C code in other packages. The description of the API can be found by either typing ?stringdist_api in the R console or open the vignette directly as follows:

vignette("stringdist_C-Cpp_api", package="stringdist")

Examples of packages that link to stringdist can be found here and here.


Try the stringdist package in your browser

Any scripts or data that you put into this service are public.

stringdist documentation built on Sept. 9, 2021, 5:08 p.m.