geocs_swm {geocomplexity} | R Documentation |
constructing spatial weight matrix based on geocomplexity with similar geographical configurations
geocs_swm(sfj, wt = NULL, style = "B", ...)
sfj |
An |
wt |
(optional) Spatial weight matrix based on spatial adjacency or spatial distance relationships. |
style |
(optional) A character that can be |
... |
(optional) Other parameters passed to |
A matrix
econineq = sf::read_sf(system.file('extdata/econineq.gpkg',package = 'geocomplexity'))
wt_gc = geocs_swm(econineq)
wt_gc[1:5,1:5]