repair_zipcode: Try to repair the zipcode

View source: R/main.R

repair_zipcodeR Documentation

Try to repair the zipcode

Description

We will search for an exact match in a zipcode, where there is no match for the street name in the given zipcode. On success, the Lat Long will be returned.

Usage

repair_zipcode(Street_num, Prefix = "", Street_name, Street_type = "", Zipcode)

Arguments

Street_num

Number portion of address.

Prefix

Directional prefix (N, S, E, W) if exists.

Street_name

Name of the street.

Street_type

Designation like RD, ST, LN, etc.

Zipcode

The zip code for the address

Value

A tibble will be returned with the:

  • Longitude (Lon),

  • Latitude (Lat),

  • The Zip code (New_zipcode),

  • a success flag (Success) (T/F),

  • and a Fail code describing why the repair attempt failed.

Examples

repair_number("1311", "", "Tulane", "ST", "77088")

alankjackson/GeocodeHou documentation built on May 20, 2022, 12:03 p.m.