findWEneighbors {wpm} | R Documentation |
Function for spatial constraint that only looks for West (left) and East (right) neighbors of the current element (i,j) of the matrix m.
findWEneighbors(m, i, j)
m, |
matrix |
i, |
integer, line index in the matrix |
j, |
integer, column index in the matrix |
A vector containing the West and East neighbors of the element (i,j) of the matrix being processed