eiCompare (version 3.0.0)

dedupe_voter_file: De-duplicates a voter file.

Description

Currently, this function removes all but the latest entries in a voter file according to voter ID. This assumes the voter file is sorted by voter ID chronologically.

Usage

dedupe_voter_file(voter_file, voter_id = "voter_id")

Arguments

voter_file

The voter file, as a data frame or tibble.

voter_id

The column denoting the voter ID.

Value

The voter file with duplicates removed.

Details

This function can be updated with more functionality to handle edge cases.