Learn R Programming

fastLink (version 0.1.1)

getMatches: getMatches

Description

Subset two data frames to the matches returned by fastLink() or matchesLink().

Usage

getMatches(dfA, dfB, fl.out)

Arguments

dfA

Dataset A - matched to Dataset B by fastLink().

dfB

Dataset B - matches to Dataset A by fastLink().

fl.out

Either the output from fastLink() or matchesLink().

Value

getMatches() returns a list of two data frames:

dfA.match

A subset of dfA subsetted down to the successful matches.

dfB.match

A subset of dfB subsetted down to the successful matches.

Examples

Run this code
# NOT RUN {
fl.out <- fastLink(dfA, dfB,
varnames = c("firstname", "lastname", "streetname", "birthyear"),
n.cores = 1)
ret <- getMatches(dfA, dfB, fl.out)
# }

Run the code above in your browser using DataLab