knitr::opts_chunk$set( collapse = TRUE, comment = "#>" )
This vignette provides the requirements for a shapefile that will be processed by the Geographic Aggregation Tool (GAT) and the necessary specifications if you wish to use GAT's various options.
GAT requires an Esri shapefile. If your file is in another format, you will need to convert it to an Esri shapefile using R or your preferred GIS software.
The minimum requirements for your shapefile include:
These requirements allow you to merge areas using lowest count and closest geographic centroid merge settings.
If you want to aggregate within a boundary, you will also need:
If you want to use exclusion criteria, you will also need:
If you want to merge on similar variables, you will also need:
limitdenom=TRUE
, this variable cannot contain any zeroes after removing exclusions.If you want to include a rate calculation (or ratio or density), you will also need:
limitdenom=TRUE
, this variable cannot contain any zeroes after removing exclusions.If you want to merge by the closest population-weighted centroid, you will also need another Esri shapefile, which can be the aggregation shapefile or an entirely different shapefile. It must include:
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.