nbtest | R Documentation |
Tests a list of neighboring regions for proper format. Neighborhood is tested for being symmetrical. Causes an error if tests fail.
nbtest(nblist, n.regions=length(nblist))
nblist |
A list with a component for
every region. The
components are vectors of integers indicating
neighboring regions. A region without neighbors (e.g., an island)
should be assigned a vector |
n.regions |
Number of regions. |
invisible{TRUE}
.
Christian Hennig christian.hennig@unibo.it https://www.unibo.it/sitoweb/christian.hennig/en
prabinit
.
data(nb)
nbtest(nb)
nb[[1]][1] <- 1
try(nbtest(nb))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.