findNEWSneighbors {wpm} | R Documentation |
Function for spatial contraints: the North, East, West and South neighbors of the current element (i,j) of the matrix m.
findNEWSneighbors(m, i, j)
m, |
matrix |
i, |
integer, line index in the matrix |
j, |
integer, column index in the matrix |
A vector containing the North, East, West and South neighbors of the element (i,j) of the matrix being processed.