split_address: Split Adresses Into Street, House Number And Additional...

View source: R/split_address.R

split_addressR Documentation

Split Adresses Into Street, House Number And Additional Letter

Description

This function takes a character vector where each element is made up from a concatenation of street name, house number and possibly an additional letter and splits it into its parts.

Usage

split_address(x, debug = FALSE)

Arguments

x

A character vector

debug

If true, all records will be printed to the console

Details

If the function fails, consider using debug = TRUE. This will print the record, which caused the error. Consider filing an issue on the linked git project (see DESCRIPTION).

Value

A data.frame with three columns

Strasse

A character column containing the extracted street names

Hausnummer

House number

Hausnummernzusatz

Additional letter

Note

For a more advanced, general purpose solution see libpostal.

Author(s)

Daniel Schürmann

See Also

split_number

Examples

split_address(c("Teststr. 8-9 a", "Erster Weg 1-2", "Ahornallee 100a-102c"))

KOR.addrlink documentation built on May 29, 2024, 4 a.m.