powered by
Get density computed from weights matrix
weights_density(gda_w)
A Weight object
A numeric value of spatial weights density
# NOT RUN { guerry_path <- system.file("extdata", "Guerry.shp", package = "rgeoda") guerry <- geoda_open(guerry_path) queen_w <- queen_weights(guerry) weights_density(queen_w) # }
Run the code above in your browser using DataLab