exact_match: Extract Exact Matches by All Fields Between Two Snapshots

Description Usage Arguments Value

View source: R/exact_match.R

Description

This function takes a named list of two snapshots, performs exact matching by dplyr::inner_join, and outputs a list of three dataframes: the first dataframe contains records that are exact matches between the two dataframes. The second dataframe contains records that are only in the first snapshot. The third dataframe contains records that are only in the second snapshot. This is to take the load off record linkage when the snapshots are granular, such as daily snapshots.

Usage

1
exact_match(df_list, dfA = "dfA", dfB = "dfB", exact_exclude = TRUE)

Arguments

df_list

A named list that contains two consecutive snapshots.

dfA

Name of the first snapshot in df_list for exact matching. Defaults to "dfA".

dfB

Name of the second snapshot in df_list for exact matching. Defaults to "dfB".

exact_exclude

Whether to actually perform this extraction. Defaults to TRUE.

Value

A list of three dataframes: exact_match, mismatch_A, and mismatch_B.


sysilviakim/voterdiffR documentation built on June 22, 2020, 6:51 p.m.