grid_neighbor {jpgrid}R Documentation

Neighborhood grid square codes

Description

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.


[Package jpgrid version 0.3.1 Index]