findNEWSneighbors: Find the 4 cardinal neighbors of an element of a matrix

Description Usage Arguments Value

View source: R/fct_constraints.R

Description

Function for spatial contraints: the North, East, West and South neighbors of the current element (i,j) of the matrix m.

Usage

1

Arguments

m,

matrix

i,

integer, line index in the matrix

j,

integer, column index in the matrix

Value

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


wpm documentation built on Nov. 8, 2020, 5:34 p.m.