A function to compute the spatial units' perimeters
The function is based on on rgdal and rgeos packages and can be used with a shape file or an R spatial object (SpatialPolygonsDataFrame).
- a spatial object (SpatialPolygonsDataFrame) containing geographic information
- a character vector with the folder (directory) name indicating where the shapefile with the geographic information is located.
- a character vector with the name of the shapefile (without the .shp extension) which contains the geographic information
A perimeter vector
Other spatial functions used for segregation indices
1 2 3 4
Want to suggest features or report bugs for rdrr.io? Use the GitHub issue tracker.