View source: R/surname_utils.R
get_unique_special_characters | R Documentation |
Returns a unique list of special characters found in a column of a dataframe. By default, these characters consist of any that are not upper- or lower-case letters. This preference can be overwritten by providing a new regular expression.
get_unique_special_characters(
voter_file,
surname_col = "last_name",
regex = "[A-Za-z]"
)
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 identifying non-special characters (by default, alphabetic characters). |
A vector of unique special characters found in the names.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.