R/SpatialWeightOperators.R
NeighbourCardinality.Rd
As spdep::card.
spdep::card
NeighbourCardinality(W)
Spatial weights matrix.
List with cardinality, table (named counts), n_links, islands (1-based) and mean.
cardinality
table
n_links
islands
mean
NeighbourCardinality(matrix(c(0, 1, 0, 1, 0, 1, 0, 1, 0), 3))$table #> card #> 1 2 #> 2 1