checkConstraints: Check for spatial constraints

Description Usage Arguments Value

View source: R/fct_constraints.R

Description

Finds the neighbors of the current element (row, col) in the matrix m, depending on the chosen constraint pattern. Currently, there are only 3 valid patterns (NS, WE and NEWS)

Usage

1

Arguments

m

matrix

row

current selected row in the matrix m

col

current selected column in the matrix m

mode

spatial constraint

Value

A vector containing the neighbors of element (row,col) of the matrix m.


HelBor/wpm documentation built on June 15, 2021, 4:16 p.m.