split_number {KOR.addrlink} | R Documentation |
Split house number into house number and additional letter
Description
This function takes a character vector where each element is made up from a concatenation of house number and possibly an additional letter and splits is into its parts.
Usage
split_number(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 two columns
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_number(c("8-9 a", "1-2", "100a-102c"))
[Package KOR.addrlink version 1.0.1 Index]