split_address {KOR.addrlink} | R 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
Examples
split_address(c("Teststr. 8-9 a", "Erster Weg 1-2", "Ahornallee 100a-102c"))
[Package KOR.addrlink version 1.0.1 Index]