Learn R Programming

eiCompare (version 3.0.4)

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")

Value

The voter file with duplicates removed.

Arguments

voter_file

The voter file, as a data frame or tibble.

voter_id

The column denoting the voter ID.

Details

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