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.


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