Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

nbtest

Test of neighborhood list


Description

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

Usage

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)

See Also

Examples

data(nb)
nbtest(nb)
nb[[1]][1] <- 1
try(nbtest(nb))

prabclus

Functions for Clustering and Testing of Presence-Absence, Abundance and Multilocus Genetic Data

v2.3-2
GPL
Authors
Christian Hennig <christian.hennig@unibo.it>, Bernhard Hausdorf <Hausdorf@zoologie.uni-hamburg.de>
Initial release
2020-01-06

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.