surname_match: Determines which surnames match to the Census list.

View source: R/surname_utils.R

surname_matchR Documentation

Determines which surnames match to the Census list.

Description

Determines which surnames match to the Census list.

Usage

surname_match(voter_file, surname_col = "last_name", strip_special = FALSE)

Arguments

voter_file

The voter file, with each row consisting of a voter.

surname_col

A string denoting the surname column.

strip_special

Whether to strip special characters before matching in the surname database.

Value

A vector of logicals denoting a match or not.


RPVote/eiCompare documentation built on Feb. 9, 2025, 9:57 a.m.