geocs_swm {geocomplexity}R Documentation

constructing spatial weight matrix based on geocomplexity with similar geographical configurations

Description

constructing spatial weight matrix based on geocomplexity with similar geographical configurations

Usage

geocs_swm(sfj, wt = NULL, style = "B", ...)

Arguments

sfj

An sf object or spatial vector object that can be converted to sf by sf::st_as_sf().

wt

(optional) Spatial weight matrix based on spatial adjacency or spatial distance relationships.

style

(optional) A character that can be B,W,C. More to see spdep::nb2mat(). Default is B.

...

(optional) Other parameters passed to geocomplexity::geocs_vector().

Value

A matrix

Examples

econineq = sf::read_sf(system.file('extdata/econineq.gpkg',package = 'geocomplexity'))
wt_gc = geocs_swm(econineq)
wt_gc[1:5,1:5]


[Package geocomplexity version 0.2.1 Index]