Description Usage Arguments Value Examples
Clear address entries in the provided directory dataframe of undesired prefixes such as "depot", "office", "store", "works" or "workshops".
1 | utils_remove_address_prefix(directory, regex, ignore_case)
|
directory |
A directory dataframe with an |
regex |
Regex character string to be use for matching. |
ignore_case |
Boolean specifying whether case should be ignored
( |
A dataframe.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 | ## Not run:
directory <- data.frame(
page = c("71", "71"),
surname = c("ABOT", "ABRCROMBIE"), forename = c("Wm.", "Alex"),
occupation = c("Wine and spirit merchant", "Baker"),
addresses = c(
"depot -; 1820 London st. ; house, Mary hill.*",
"workshop,,12 &;Dixon st.; residence, Craigrownie, Cove.$ "
),
stringsAsFactors = FALSE
)
regex <- globals_regex_address_prefix
utils_remove_address_prefix(directory, regex, TRUE)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.