View source: R/calculateGATcompactness.R
calculateGATcompactness | R Documentation |
This function calculates the compactness ratios for the aggregated areas.
It checks whether the projection of a spatial polygons data frame is in lat/long format. If the check passes, the function assigns an alternate projection. The spatial polygons data frame is then used to calculate compactness ratio. The function returns a vector of ratios.
calculateGATcompactness(myshp)
myshp |
A spatial layer. |
calculateGATcompactness(myshp = hftown)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.