Contiguity spatial weights matrix

w_contiguity(x)

Arguments

x

inheriting from "sfc"

Examples

data("est_adm1") w <- w_contiguity(sf::st_geometry(est_adm1)) w
#> Spatial weights matrix [15 x 15] #> Type: Contiguity (rook)
plot(w)