general_split_address_numbers_bodies: Mutate operation(s) in Scottish post office general directory...

Description Usage Arguments Value

View source: R/general.r

Description

Attempts to separate number from body of address entries in the Scottish post office general directory data.frame provided

Usage

1
2
3
4
5
6
7
8
general_split_address_numbers_bodies(
  directory,
  regex_split_address_numbers,
  regex_split_address_body,
  regex_split_address_empty,
  ignore_case_filter,
  ignore_case_match
)

Arguments

directory

A Scottish post office general directory in the form of a data.frame or other object that inherits from the data.frame class such as a tibble. Columns must at least include address.trade and address.house.

regex_split_address_numbers

Regex to use to match address number(s).

regex_split_address_body

Regex to use to match address body(/ies).

regex_split_address_empty

Regex to use to match empty address entries.

ignore_case_filter

Boolean specifying whether case should be ignored (TRUE) or not (FALSE) for using one of the regexes above as filtering regex in utils_regmatches_if_found.

ignore_case_match

Boolean specifying whether case should be ignored (TRUE) or not (FALSE) for using one of the regexes above as matching regex in utils_regmatches_if_found.

Value

A data.frame of the same class as the one provided in directory; columns include at least address.trade.number, address.trade.body, address.house.number and address.house.body.


podcleaner documentation built on Jan. 12, 2022, 1:06 a.m.