View source: R/surname_utils.R
get_word_count | R Documentation |
A "word" is defined as a string of alphabetical characters separated by either spaces or dashes (but not other special characters).
get_word_count(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 querying the the word count. |
A vector of word counts.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.