calc_match_addresses: Match two sets of addresses

View source: R/calc_match_addresses.R

calc_match_addressesR Documentation

Match two sets of addresses

Description

Match a distinct dataframe of primary addresses to a distinct dataframe of lookup addresses.

Usage

calc_match_addresses(
  primary_df,
  primary_postcode_col,
  primary_address_col,
  lookup_df,
  lookup_postcode_col,
  lookup_address_col
)

Arguments

primary_df

Dataframe of distinct primary addresses

primary_postcode_col

Column containing the primary postcode

primary_address_col

Column containing the primary single line address

lookup_df

Dataframe of distinct lookup addresses

lookup_postcode_col

Column containing the lookup postcode

lookup_address_col

Column containing the lookup single line address

Details

Returns a dataframe of exact matches (postcode and single line address) and non exact matches (postcode and fuzzy single line address). For non exact matches it will retain draws.


nhsbsa-data-analytics/addressMatchR documentation built on June 16, 2024, 6:03 a.m.