max_neighbors: Maximum Neighbors of Spatial Weights

View source: R/weights.R

max_neighborsR Documentation

Maximum Neighbors of Spatial Weights

Description

Get the number of maximum neighbors of spatial weights

Usage

max_neighbors(gda_w)

Arguments

gda_w

A Weight object

Value

The number of maximum 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)
max_neighbors(queen_w)

## End(Not run)

GeoDaCenter/rgeoda documentation built on Dec. 20, 2024, 11:18 p.m.