R/zipcode.R
is_zipcode.Rd
is_zipcode(x)
Zip-code. Number or character. Hyphens may be included, but the input must contain a 7-character number.
A logical vector.
is_zipcode(7000027) #> [1] TRUE is_zipcode("700-0027") #> [1] TRUE