View source: R/split_address.R
split_address | R Documentation |
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.
split_address(x, debug = FALSE)
x |
A character vector |
debug |
If true, all records will be printed to the console |
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).
A data.frame with three columns
Strasse |
A character column containing the extracted street names |
Hausnummer |
House number |
Hausnummernzusatz |
Additional letter |
For a more advanced, general purpose solution see libpostal.
Daniel Schürmann
split_number
split_address(c("Teststr. 8-9 a", "Erster Weg 1-2", "Ahornallee 100a-102c"))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.