Description Usage Arguments Value
For a given hexmatrix and a given index of a cell, find all indices of all neighbours that have the same value.
1 | region(m, i)
|
m |
A hexmatrix of values |
i |
A index of a cell to start from |
A vector of indices of cells that are neighbours of i
and have the
same value in m
as m[i]
, or cells recursively neighbouring with such
neighbours.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.