Learn R Programming

rgeoda (version 0.1.0)

median_neighbors: Median Neighbors of Spatial Weights

Description

Get the number of median neighbors of spatial weights

Usage

median_neighbors(gda_w)

Value

The number of median neighbors of spatial weights

Arguments

gda_w

A Weight object

Examples

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

Run the code above in your browser using DataLab