A first order contiguity (adjacency) matrix, where each
element [i,j] equals 1 if i-th and j-th
spatial units are adjacent, 0 otherwise (queen or rook criteria)
Arguments
spatobj
- a spatial object (class sf, sfc or sfg) containing
geographic information
folder
- a character vector with the folder (directory)
name indicating where the shapefile with the geographic information
is located.
shape
- a character vector with the name of the shapefile
(without the .shp extension) which contains the geographic information
queen
= TRUE for queen criteria, FALSE (by default) for rook criteria
See Also
Other spatial functions used for segregation indices
computation: area, perimeter,
distance, distcenter,
boundaries