View source: R/nb-block-contiguity.R
st_block_nb | R Documentation |
libpysal write that "block contiguity structures are relevant when defining neighbor relations based on membership in a regime. For example, all counties belonging to the same state could be defined as neighbors, in an analysis of all counties in the US."
Source: libpysal
st_block_nb(regime, id = 1:length(regime), diag = FALSE)
regime |
a column identifying which spatial regime each element of |
id |
a column identifying unique observations |
diag |
default |
An object of class nb
. When diag = TRUE
the attribute self.included = TRUE
.
id <- guerry$code_dept
regime <- guerry$region
st_block_nb(regime, id)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.