fuzzy_match | R Documentation |
Match two data bases based on names and dates of birth permitting differences
fuzzy_match(
query,
target = NULL,
cutoff = 0.5,
total.max = 8,
full.max = 8,
check.truncated = TRUE,
truncate = "am",
keep.all.matches = FALSE
)
query |
A data.table with the names to be matched |
target |
A data.table with the names to be matched to |
cutoff |
Remove any match with score below this number |
total.max |
Maximum Number of erros to permit to be considered |
full.max |
Maximum number of errors permited by full match |
check.truncated |
Checks if second last name is truncated. If truncated matches only remaining part. |
truncate |
The columns to truncate. Defaults to second name 'am' |
keep.all.matches |
if 'TRUE' the function returns a list with the final match and a table with all the matches that were considered. |
min.n |
Minimum number of data points needed to fit calibration model |
A data.table with matches
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.