id_match: Extract Exact Matches by ID Fields Between Two Dataframes

Description Usage Arguments Value

View source: R/id_match.R

Description

This function takes a named list of two dataframes, performs exact matching by specified ID field(s), and outputs a list of four dataframes: the original dataframes are split into ID matches and non-matches. The original dataframes would be rid of records that match in IDs. The additional dataframes of "id_match_A" and "id_match_B" would contain records with matches in ID in the respective input dataframes.

Usage

1
2
id_match(df_list, ids = c("lVoterUniqueID", "sAffNumber"),
  dfA = "mismatch_A", dfB = "mismatch_B")

Arguments

df_list

A named list that contains two dataframes to check for ID matches.

ids

A vector of internal IDs to iterate for exact match extracts. Defaults to c("lVoterUniqueID", "sAffNumber").

dfA

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

dfB

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

Value

the data frame with IDs corrected for


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