Neighborhood grid square codes
Usage
grid_neighborhood(grid, n = 1L, type = NULL, simplify = TRUE)
Arguments
- grid
A grid
vector.
- n
A numeric vector of degrees. By default, 1L
.
- type
A character vector of neighborhood types, "von_neumann"
or
"moore"
. By default, "von_neumann"
.
- simplify
Should simplify the format of the return?
Value
A list of grid
vectors.