Shared boundary matrix
This function calculates the shared boundary matrix
SharedBMat(sf_pol, rn = FALSE)
sf_pol
: spatial polygons, spatial lines object or spatial data framern
: logical, default FALSE. If TRUE, the spatial weights matrix is row-normalizedlibrary("sf") ger <- st_read(system.file("shape/GermanyNUTS3.shp", package = "SDPDmod"), quiet = TRUE) bav <- ger[which(substr(ger$NUTS_CODE,1,3)=="DE2"),] ## Bavarian districts W <- SharedBMat(bav)
Rozeta Simonovska
Useful links