R/spatial_object.R
morie_spatial_weights.Rd
Spatial weights from a neighbour matrix
morie_spatial_weights(neighbors, style = c("W", "B"))
A binary neighbour matrix.
"W" (row-standardised) or "B" (binary).
A weights matrix.
morie_spatial_weights(matrix(c(0,1,1,0), 2)) #> [,1] [,2] #> [1,] 0 1 #> [2,] 1 0