Learn R Programming

rgeoda (version 0.1.0)

has_isolates: Isolation/Island in Spatial Weights

Description

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

Usage

has_isolates(gda_w)

Value

A boolean value indicates if weights matrix is symmetric

Arguments

gda_w

A Weight object

Examples

Run this code
if (FALSE) {
guerry_path <- system.file("extdata", "Guerry.shp", package = "rgeoda")
guerry <- st_read(guerry_path)
queen_w <- queen_weights(guerry)
has_isolates(queen_w)
}

Run the code above in your browser using DataLab