include_self | 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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.