Description Usage Arguments Value Author(s)
View source: R/sum_living_neighbours.R
Returns a matrix containing the number of living neighbours for each cell on the board.
1 | sum_living_neighbours(board, torify = TRUE)
|
board |
An n^2 binary matrix with living cells indicated by 1s. |
torify |
Logical indicating whether the board should be wrapped up into a torus to prevent inconsistencies at the edges (defaults to |
An n^2 matrix containing the number of living neighbours that each cell has.
Alex Kalinka, alex.t.kalinka@gmail.com
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.