get.nb: Function for calculating neighbouting polygons.

Description Usage Arguments Value

View source: R/get.nb.R

Description

This function allows the user to calculate, for every given polygon (in the array 'index'), the list of its neighbouring polygons.

Usage

1
get.nb(arc,pal, index=NULL)

Arguments

arc

The list of arc definitions, as returned by 'get.arcdata'.

pal

The list of polygon definitions, as returned by 'get.paldata'.

index

An array with the polygons we want to use to calculate their neighbours. It must be an array. If 'index' is not set, then all the polygons are used.

Value

A list in which the first element is a vector of the neighbouring polygons of the fist element in 'index', and so on.


RArcInfo documentation built on May 1, 2019, 10:26 p.m.

Related to get.nb in RArcInfo...