create_adj_matrix.Rd
Create adjacency matrix from spatial polygons
create_adj_matrix(sh)
an adjacency matrix with 1s and 0s
Input sh
can be either sf
class or SpatialPolygons from sp
. Uses spdep
package to convert shapefile to neighbor list to adjacency matrix.