has_isolates: Isolation/Island in Spatial Weights

View source: R/weights.R

has_isolatesR Documentation

Isolation/Island in Spatial Weights

Description

Check if weights matrix has isolates, or if any observation has no neighbors

Usage

has_isolates(gda_w)

Arguments

gda_w

A Weight object

Value

A boolean value indicates if weights matrix is symmetric

Examples

## Not run: 
guerry_path <- system.file("extdata", "Guerry.shp", package = "rgeoda")
guerry <- st_read(guerry_path)
queen_w <- queen_weights(guerry)
has_isolates(queen_w)

## End(Not run)

rgeoda documentation built on April 3, 2025, 10:55 p.m.

Related to has_isolates in rgeoda...