dedupe_voter_file: De-duplicates a voter file.

View source: R/voter_file_utils.R

dedupe_voter_fileR Documentation

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.

Details

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

Value

The voter file with duplicates removed.


eiCompare documentation built on Aug. 31, 2023, 5:16 p.m.