Create Block Contiguity for Spatial RegimesSource:
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."
st_block_nb(regime, id = 1:length(regime), diag = FALSE)
a column identifying which spatial regime each element of
a column identifying unique observations
TRUE, includes diagonal element / the self.