grid_components {jpgrid}R Documentation

Connected components of grid square codes

Description

Connected components of grid square codes

Usage

grid_components(grid, n = 0:1, type = NULL)

Arguments

grid

A grid vector.

n

A numeric vector of degrees. By default, 0:1.

type

A character vector of neighborhood types, "von_neumann" or "moore". By default, "von_neumann". (FALSE, default).

Value

A integer vector of group IDs.


[Package jpgrid version 0.4.0 Index]