nbtest: Test of neighborhood list

Description Usage Arguments Value Author(s) See Also Examples

Description

Tests a list of neighboring regions for proper format. Neighborhood is tested for being symmetrical. Causes an error if tests fail.

Usage

1
nbtest(nblist, n.regions=length(nblist))

Arguments

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 numeric(0).

n.regions

Number of regions.

Value

invisible{TRUE}.

Author(s)

Christian Hennig chrish@stats.ucl.ac.uk http://www.homepages.ucl.ac.uk/~ucakche

See Also

prabinit.

Examples

1
2
3
4
data(nb)
nbtest(nb)
nb[[1]][1] <- 1
try(nbtest(nb))


prabclus documentation built on May 19, 2017, 6:23 p.m.
Search within the prabclus package
Search all R packages, documentation and source code

Questions? Problems? Suggestions? Tweet to @rdrrHQ or email at ian@mutexlabs.com.

Please suggest features or report bugs in the GitHub issue tracker.

All documentation is copyright its authors; we didn't write any of that.