Learn R Programming

phonics (version 1.1.0)

onca: Oxford Name Compression Algorithm

Description

The Oxford Name Compression Algorithm name coding procedure

Usage

onca(word, maxCodeLen = 4)

Arguments

word

string or vector of strings to encode

maxCodeLen

maximum length of the resulting encodings, in characters

Value

the ONCA encoded character vector

Caveats

The onca algorithm is only defined for inputs over the standard English alphabet, i.e., "A-Z." For inputs outside this range, the output is undefined.

Details

The variable word is the name to be encoded. The variable maxCodeLen is the limit on how long the returned name code should be. The default is 4.

References

Gill, Leicester. "OX-LINK: the Oxford medical record linkage system." (1997).

See Also

Other phonics: caverphone, cologne, lein, metaphone, mra_encode, nysiis, phonex, rogerroot, soundex, statcan

Examples

Run this code
# NOT RUN {
onca("William")
onca(c("Peter", "Peady"))
onca("Stevenson", maxCodeLen = 8)

# }

Run the code above in your browser using DataLab