Description Usage Arguments Value
Gets the cell ID within a matrix using the position format ('c(X, Y)') suppplied by 'move.list'.
1 | matrixCellFromXY(pos, matsize)
|
pos |
vector, a position in the format 'c(X, Y)' i.e. 'c(col, row)'. Intended to accept a single position in 'move.list' |
matsize |
integer, the size of the square matrix on which the simulation is being run |
integer, the cell ID indicated by the X, Y coordinates.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.