include_self {sfdep} | R Documentation |
Includes observed region in list of own neighbors. For some neighbor lists, it is important to include the ith observation (or self) in the neighbors list, particularly for kernel weights.
include_self(nb)
remove_self(nb)
nb |
an object of class |
An object of class nb
.
nb <- st_contiguity(guerry)
self_included <- include_self(nb)
self_included
remove_self(self_included)