zip_distance()
results (Pull request contributed by Nicholas X Lee).zip_distance()
function to allow distance calculations between two vectors or columns of ZIP codes. The function now returns a data.frame of the resulting distance calculation.zip_distance()
now includes an additional argument, units, which allows selection between miles and meters for distance calculations.zip_code_db
has been updated.download_zip_data()
has been refactored to make data updates more easily accessible and compare against existing data. Data is now directly downloaded from the upstream source and the existing data GitHub repository will no longer be updated.zip_distance()
has been updated to allow changing the type of distance calculation performed if specified via the lonlat argument.{zipcodeR}
in a publication, you can obtain citation info by running citation("zipcodeR")
.{udunits2}
for the zip_distance()
and search_radius()
functions.search_radius()
function to allow searching for ZIP codes around a radius of lat / lon coordinates.zip_distance()
function for calculating the distance between ZIP codes using their centroids.geocode_zip()
function that returns the lat / lng centroid of a given ZIP code.normalize_zip()
function for normalizing messy ZIP code input (Contributed by Claus Wilke).reverse_zipcode()
function has been updated to return a blank row for invalid ZIP codes with no matches in the zip code database.search_
family of functions are now quieter.search_county()
function now allows for approximate matching of county names using agrep (Andre Mikulec)search_state()
is now vectorized and will accept a vector of state abbreviationssearch_tz()
is now vectorized and will accept a vector of timezoneszip_code_db
has been updated to use latest upstream datareverse_zipcode()
function for obtaining metadata about a given ZIP code.search_cd()
function for searching ZIP codes contained within a given congressional district.is_zcta()
function for testing whether a given ZIP code is a ZIP code tabulation area (ZCTA).search_fips()
function for searching ZIP codes by state and county FIPS codes.get_cd()
and search_cd()
functions for relating ZIP codes to congressional districtsInitial public release, first version accepted by CRAN.