lisa_num_nbrs {rgeoda} | R Documentation |
Get numbers of neighbors for all observations
Description
Get numbers of neighbors for all observations
Usage
lisa_num_nbrs(gda_lisa)
Arguments
gda_lisa |
An instance of LISA object |
Value
A numeric vector of the number of neighbors
Examples
## Not run:
library(sf)
guerry_path <- system.file("extdata", "Guerry.shp", package = "rgeoda")
guerry <- st_read(guerry_path)
queen_w <- queen_weights(guerry)
lisa <- local_moran(queen_w, guerry["Crm_prs"])
nn <- lisa_num_nbrs(lisa)
nn
## End(Not run)
[Package rgeoda version 0.0.10-4 Index]