generVois | R Documentation |
For each polygon of a regular grid, generate the indexes of its neighbour polygons
generVois(np = 10, nvois = 1)
np |
Number of polygons on each axis of the grid. |
nvois |
Number of polygons required in the neighbourhood, on each direction, for each polygon |
For each polygon P of a regular grid made of np
polygons along each axis, the indexes of its neighbours
are generated: the neighbours are the polygons included
in the square made of
nvois
polygons
below, above, at the
right and left sides of P, in the limit
of the grid bounds.
A two-columns matrix, of all pairs of neighbourgs.
generPoly
,
califlopp
generVois(np=3)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.