mean_neighbors function

Mean Neighbors of Spatial Weights

Mean Neighbors of Spatial Weights

Get the number of mean neighbors of spatial weights

mean_neighbors(gda_w)

Arguments

  • gda_w: A Weight object

Returns

The number of mean neighbors of spatial weights

Examples

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