Rdocumentation
powered by
Learn R Programming
RArcInfo (version 0.4-12)
get.nb: Function for calculating neighbouting polygons.
Description
This function allows the user to calculate, for every given polygon (in the array 'index'), the list of its neighbouring polygons.
Usage
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.