Description Usage Arguments Value
View source: R/fct_constraints.R
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)
1 | checkConstraints(m, row, col, mode)
|
m |
matrix |
row |
current selected row in the matrix m |
col |
current selected column in the matrix m |
mode |
spatial constraint |
A vector containing the neighbors of element (row,col) of the matrix m.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.