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.

## Arguments

- nb
an object of class

`nb`

e.g. made by`st_contiguity()`

## Examples

```
nb <- st_contiguity(guerry)
self_included <- include_self(nb)
self_included
#> Neighbour list object:
#> Number of regions: 85
#> Number of nonzero links: 505
#> Percentage nonzero weights: 6.989619
#> Average number of links: 5.941176
remove_self(self_included)
#> Neighbour list object:
#> Number of regions: 85
#> Number of nonzero links: 420
#> Percentage nonzero weights: 5.813149
#> Average number of links: 4.941176
```