Skip to contents

get neigh

Usage

get_neigh(grid, cell)

Arguments

grid

grid object

cell

grid number

Value

grid cells that are neighbours

Examples

get_neigh(grid, 1)
#> [1] 2 5 6