include_self {sfdep} | R Documentation |
Includes self in neighbor list
Description
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.
Usage
include_self(nb)
remove_self(nb)
Arguments
nb |
an object of class |
Value
An object of class nb
.
Examples
nb <- st_contiguity(guerry)
self_included <- include_self(nb)
self_included
remove_self(self_included)
[Package sfdep version 0.2.4 Index]