geo2neighbor: Neighborhood list from geographical distance

View source: R/geodist.R

geo2neighborR Documentation

Neighborhood list from geographical distance

Description

Generates a neighborhood list as required by prabinit from a matrix of geographical distances.

Usage

geo2neighbor(geodist,cut=0.1*max(geodist))

Arguments

geodist

dist-object or symmetric non-negative matrix. Geographical distances between regions.

cut

non-negative numerical. All pairs of regions with distance<=cut are treated as neighbors.

Value

A list of integer vectors, giving the set of neighbors for every region.

Author(s)

Christian Hennig christian.hennig@unibo.it https://www.unibo.it/sitoweb/christian.hennig/en

Examples

data(waterdist)
geo2neighbor(waterdist)

prabclus documentation built on Sept. 24, 2024, 5:07 p.m.