Skip to contents

Neighborhood grid square codes

Usage

grid_neighbor(grid, n = 1L, moore = TRUE, simplify = TRUE)

Arguments

grid

A grid vector.

n

A numeric vector of degrees.

moore

Moore neighborhood (TRUE) or Von Neumann neighborhood (FALSE).

simplify

Should simplify the format of the return?

Value

A list of grid vectors.