R/us_zipcodes.R

Defines functions us_zipcodes

Documented in us_zipcodes

#' Zip Code Tabulation Areas (contemporary)
#'
#' Get the current (2019) centroids for U.S Zipcode Tabulation Areas from the
#' U.S. Census Bureau. The centroids were calculated from the ZCTA boundary
#' files available on the U.S. Census Bureau website.
#'
#' @return An \code{sf} object.
#'
#' @seealso For documentation of and citation to the underlying shapefiles for
#'   contemporary data from the U.S. Census Bureau, see the
#'   \code{census_boundaries} documentation in the USAboundariesData package.
#'
#' @examples
#' if (require(USAboundariesData)) {
#'   us_zipcodes()
#' }
#'
#' @export
us_zipcodes <- function() {
  check_data_package()
  USAboundariesData::zipcodes
}
ropensci/USAboundaries documentation built on Oct. 16, 2021, 9:48 a.m.