knitr::opts_chunk$set(
  collapse = TRUE,
  comment = "#>",
  fig.path = "man/figures/README-",
  out.width = "100%"
)

uszipcodes

The goal of ZipcodeUS is to provide data and tools for those looking for plot their address data.\ Attached functions could be used to clean zip codes before joinining with Zip table to obtain longtitudes/latitudes.

Example

library(uszipcodes)
y <- c("1234 100th Street, New York, NY, 10001", "5678 100th Street, New York, NY, 23")
get_zip(y)
contain_letter(get_zip(y))
x <- c("1234", "Li123"," 1234", "  123")
clean_zip(x)

Zip table

head(zip_table)

Installation

library(devtools)
install_github("li-wen-li/uszipcodes")


li-wen-li/uszipcodes documentation built on Feb. 16, 2020, 4:41 a.m.