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.
dedupe_voter_file(voter_file, voter_id = "voter_id")
The voter file, as a data frame or tibble.
The column denoting the voter ID.
The voter file with duplicates removed.
This function can be updated with more functionality to handle edge cases.