include.self {spdep} | R Documentation |
The function includes the region itself in its own list of neighbours, and sets attribute "self.included" to TRUE.
include.self(nb)
nb |
input neighbours list of class nb |
The function returns an object of class nb
with a list of integer vectors containing neighbour region number ids; attribute "self.included" is set to TRUE.
Roger Bivand Roger.Bivand@nhh.no
data(columbus) summary(col.gal.nb, coords) summary(include.self(col.gal.nb), coords)