Skip to contents

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.