neigh2D | R Documentation |
A function to compute the neighbours of a cell on a toral grid
neigh2D(i, j, ns, M, N)
i |
cell index i |
j |
cell index j |
ns |
number of neighbours either side |
M |
size of grid in x direction |
N |
size of grid in y direction |
the cell indices of the neighbours
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.