fuzzy_match: Match two data bases based on names and dates of birth...

View source: R/fuzzy_match.R

fuzzy_matchR Documentation

Match two data bases based on names and dates of birth permitting differences

Description

Match two data bases based on names and dates of birth permitting differences

Usage

fuzzy_match(
  query,
  target = NULL,
  cutoff = 0.5,
  total.max = 8,
  full.max = 8,
  check.truncated = TRUE,
  truncate = "am",
  keep.all.matches = FALSE
)

Arguments

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

Value

A data.table with matches


rafalab/fuzzypareo documentation built on Feb. 29, 2024, 1:49 p.m.