onca: Oxford Name Compression Algorithm

Description Usage Arguments Details Value Caveats References See Also Examples

View source: R/onca.R

Description

The Oxford Name Compression Algorithm name coding procedure

Usage

1
onca(word, maxCodeLen = 4)

Arguments

word

string or vector of strings to encode

maxCodeLen

maximum length of the resulting encodings, in characters

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.

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.

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

1
2
3
onca("William")
onca(c("Peter", "Peady"))
onca("Stevenson", maxCodeLen = 8)

phonics documentation built on Aug. 17, 2018, 1:04 a.m.