R/wmat.R
w_contiguity.Rd
Contiguity spatial weights matrix
w_contiguity(x)
inheriting from "sfc"
data("est_adm1") w <- w_contiguity(sf::st_geometry(est_adm1)) w#> Spatial weights matrix [15 x 15] #> Type: Contiguity (rook)plot(w)