View source: R/surname_utils.R
strip_special_characters | R Documentation |
Given a voter file and a column, returns a voter file with special characters stripped stripped from that column.
strip_special_characters(
voter_file,
surname_col = "last_name",
regex = "[^A-Za-z]+",
replace = " "
)
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 denoting the the special characters. |
replace |
The replacement string for special characters. |
A dataframe of voters whose surname column is stripped of special characters.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.