Learn R Programming

KOR.addrlink (version 1.0.1)

split_number: 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)

Value

A data.frame with two columns

Hausnummer

House number

Hausnummernzusatz

Additional letter

Arguments

x

A character vector

debug

If true, all records will be printed to the console

Author

Daniel Schürmann

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).

See Also

split_address

Examples

Run this code
split_number(c("8-9 a", "1-2", "100a-102c"))

Run the code above in your browser using DataLab