neighbours.at | R Documentation |
'move' an arrangement in a given direction
neighbours.at(x, dir)
## S3 method for class 'matrix'
neighbours.at(x, dir)
## S3 method for class 'list'
neighbours.at(x, dir)
x |
matrix or list of matrices |
dir |
a direction in ('N', 'NE', 'E', 'SE', 'S', 'SW', 'W', 'NW') |
neighbours.at(matrix)
: Returns the matrix of neighbours in the specified
direction
neighbours.at(list)
: Returns the list of matrices of neighbours in the
specified direction
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.