findWEneighbors {wpm}R Documentation

Find the left and right neighbors of an element of a matrix

Description

Function for spatial constraint that only looks for West (left) and East (right) neighbors of the current element (i,j) of the matrix m.

Usage

findWEneighbors(m, i, j)

Arguments

m,

matrix

i,

integer, line index in the matrix

j,

integer, column index in the matrix

Value

A vector containing the West and East neighbors of the element (i,j) of the matrix being processed


[Package wpm version 1.3.2 Index]