Skip to contents

Usage

NeighbourCardinality(W)

Arguments

W

Spatial weights matrix.

Value

List with cardinality, table (named counts), n_links, islands (1-based) and mean.

Examples

NeighbourCardinality(matrix(c(0, 1, 0, 1, 0, 1, 0, 1, 0), 3))$table
#> card
#> 1 2 
#> 2 1