grid_neighborhood {jpgrid}R Documentation

Neighborhood grid square codes

Description

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.


[Package jpgrid version 0.4.0 Index]