find_buildings_numbers: Find the numerical parts of an address (building|house|unit).

Description Usage Arguments Value Examples

View source: R/address.R

Description

Returns an empty string where no match is found. The match is performed with a look ahead to match address number patterns that are not a postcode.

Usage

1
find_buildings_numbers(string, locale = "GBR", collapse = "|", unlist = TRUE)

Arguments

string

Input vector. Either a character vector, or something coercible to one (e.g. a data frame).

locale

A string, the country code in format ISO 3. Default is "GBR".

collapse

A character string separator used to collapse the matches.

unlist

A boolean.

Value

A character vector of the contatenated values, with the same length as the input character vector.

Examples

1
2
3
4
string <- "The quick brown fox's family lives at 22A-22B Bridge Road, N17 0RN."
find_buildings_numbers(string)

find_buildings_numbers(businesses, unlist = FALSE)

xavier-gilbert/sabre documentation built on May 7, 2021, 12:40 p.m.