Learn R Programming

phonics (version 1.0.0)

mra_encode: Match Rating Approach Encoder

Description

The Western Airlines matching rating approach name encoder

Usage

mra_encode(word)

mra_compare(x, y)

Arguments

word

string or vector of strings to encode

x

MRA-encoded character vector

y

MRA-encoded character vector

Value

The mra_encode function returns match rating approach encoded character vector. The mra_compare returns a boolean vector which is TRUE if x and y pass the MRA comparison test.

Details

The variable word is the name to be encoded. The variable maxCodeLen is not supported in this algorithm encoder because the algorithm itself is dependent upon its six-character length. The variables x and y are MRA-encoded and are compared to each other using the MRA comparison specification.

References

G.B. Moore, J.L. Kuhns, J.L. Treffzs, and C.A. Montgomery, Accessing Individual Records from Personal Data Files Using Nonunique Identifiers, US National Institute of Standards and Technology, SP-500-2 (1977), p. 17.

See Also

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

Examples

Run this code
# NOT RUN {
mra_encode("William")
mra_encode(c("Peter", "Peady"))
mra_encode("Stevenson")
# }

Run the code above in your browser using DataLab