get_special_character_surnames: Gets surnames containing special characters.

View source: R/surname_utils.R

get_special_character_surnamesR Documentation

Gets surnames containing special characters.

Description

Returns a subsetted voter file whose rows consist of voters that have special characters in their last name.

Usage

get_special_character_surnames(
  voter_file,
  surname_col = "last_name",
  regex = "[^A-Za-z]"
)

Arguments

voter_file

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

surname_col

A string denoting the surname column.

regex

A string denoting the regular expression to use for querying the the special characters.

Value

A dataframe of voters whose surname has special characters.


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