Learn R Programming

rgeoda (version 0.0.6)

weights_sparsity: Sparsity of Spatial Weights

Description

Get sparsity computed from weights matrix

Usage

weights_sparsity(gda_w)

Arguments

gda_w

A Weight object

Value

A numeric value of spatial weights sparsity

Examples

Run this code
# NOT RUN {
guerry_path <- system.file("extdata", "Guerry.shp", package = "rgeoda")
guerry <- geoda_open(guerry_path)
queen_w <- queen_weights(guerry)
weights_sparsity(queen_w)
# }

Run the code above in your browser using DataLab