getTypoCorrection: Check record validity and suggest typo corrections
Description
This function is the working horse for correctTypos
Usage
getTypoCorrection(E, x, fixate = FALSE, eps = sqrt(.Machine$double.eps), maxdist = 1)
Arguments
x
numerical record to be checked
eps
tolerance for an edit to be valid
maxdist
maximum edit distance to be valid as a correction suggestion
Value
list with members
status |
|
cor |
suggested corrections |
B |
reduced binary editmatrix with violated edits, needed for choosing the suggested corrections |