Description Usage Arguments Value Author(s) See Also Examples
View source: R/weights-utils.R
The function includes the region itself in its own list of neighbours, and sets attribute "self.included" to TRUE.
1 | include.self(nb)
|
nb |
input neighbours list of class |
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 [email protected]
1 2 3 4 5 6 | if (require(rgdal, quietly=TRUE)) {
example(columbus, package="spData")
coords <- coordinates(columbus)
summary(col.gal.nb, coords)
summary(include.self(col.gal.nb), coords)
}
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.