local_gearys | R Documentation |
Compute Local Geary's C
local_gearys(shp, adj, wts, spatial_mat, epsg = 3857)
shp |
sf data frame. Optional if adj or spatial_mat provided. |
adj |
zero indexed adjacency list. Optional if shp or spatial_mat provided. |
wts |
Required. Numeric vector with weights to use for Moran's I. |
spatial_mat |
matrix of spatial weights. Not required if shp or adj provided. |
epsg |
numeric EPSG code to planarize to. Default is 3857. |
numeric vector
library(dplyr)
data('checkerboard')
checkerboard <- checkerboard %>% mutate(m = as.numeric((id + i) %% 2 == 0))
local_gearys(shp = checkerboard, wts = checkerboard$m)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.