grid_neighborhood: Neighborhood grid square codes

View source: R/move.R

grid_neighborhoodR 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.


UchidaMizuki/japanmesh documentation built on April 14, 2025, 1:39 p.m.