Translate strings to phonetic codes. Similar sounding strings should get similar or equal codes.
a character vector whose elements are phonetically encoded.
name of the algorithm used. The default is
Perform byte-wise comparison.
Currently, only the soundex algorithm is implemented. Note that soundex coding is only meaningful for characters in the ranges a-z and A-Z. Soundex coding of strings containing non-printable ascii or non-ascii characters may be system-dependent and should not be trusted. If non-ascii or non-printable ascii charcters are encountered, a warning is emitted.
The returns value depends on the method used. However, all currently implemented methods return a character vector of the same length of the input vector. Output characters are in the system's native encoding.
The Soudex algorithm implemented is the algorithm used by the National Archives. This algorithm differs slightly from the original algorithm patented by R.C. Russell (US patents 1261167 (1918) and 1435663 (1922)).
1 2 3
Want to suggest features or report bugs for rdrr.io? Use the GitHub issue tracker.