Create a new column containing house range values as a list-column.

pm_houseRange_parse(.data, expand_range = TRUE, locale = "us")

Arguments

.data

A postmastr object created with pm_prep

expand_range

A logical scalar; if TRUE (default), house numbers that contain a numerical range (i.e. 11-15 Main St) will be expanded to specify all integer values within the range. Ranges that contain an alphanumeric value cannot be expanded and will be skipped.

locale

A string indicating the country these data represent; the only current option is "us" but this is included to facilitate future expansion.

Value

A tibble with a new column pm.house that contains the house range store in a list-column. The list-column will contain the low and high values for ranges, and can optionally be expanded to include all integer values within a range if expand_range is equal to TRUE.