weights_sparsity: Sparsity of Spatial Weights

View source: R/weights.R

weights_sparsityR Documentation

Sparsity of Spatial Weights

Description

Get sparsity (

Usage

weights_sparsity(gda_w)

Arguments

gda_w

A Weight object

Value

A numeric value of spatial weights sparsity

Examples

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

## End(Not run)

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