get.nb {RArcInfo} | R Documentation |
This function allows the user to calculate, for every given polygon (in the array 'index'), the list of its neighbouring polygons.
get.nb(arc,pal, index=NULL)
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. |
A list in which the first element is a vector of the neighbouring polygons of the fist element in 'index', and so on.