View source: R/surname_utils.R
| get_multi_barreled_surnames | R Documentation | 
A multi-barreled surname is one containing a dash or a space. This function finds all multi-barreled surnames in a voter file.
get_multi_barreled_surnames(
  voter_file,
  surname_col = "last_name",
  regex = "[ -]+"
)
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.  | 
A dataframe of voters whose surnames are multi-barreled.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.