zipcode_spacer: Insert and remove zip-code connect character

View source: R/zipcode.R

zipcode_spacerR Documentation

Insert and remove zip-code connect character

Description

\Sexpr[results=rd, stage=render]{lifecycle::badge("maturing")}

Inserts a hyphen as a delimiter in the given zip-code string. Or exclude the hyphen.

Usage

zipcode_spacer(x, remove = FALSE)

Arguments

x

Zip-code. Number or character. Hyphens may be included, but the input must contain a 7-character number.

remove

Default is FALSE. If TRUE, remove the hyphen.

Examples

zipcode_spacer(7000027)
zipcode_spacer("305-0053")
zipcode_spacer("305-0053", remove = TRUE)

zipangu documentation built on Dec. 9, 2022, 9:07 a.m.