gridDisk {h3r}R Documentation

Grid Disk

Description

Get indices within k distance of the origin index.

Usage

gridDisk(cell, k)

Arguments

cell

vector of H3 cells

k

int distance

Details

Elements of the output array may be left as zero, which can happen when crossing a pentagon.

k-ring 0 is defined as the origin index, k-ring 1 is defined as k-ring 0 and all neighboring indexes, and so on.

Value

the indices within k distance of the origin index

Examples


gridDisk(cell = c("8cbe63562a54bff","8cbe635631103ff"), k = c(1L, 2L))


[Package h3r version 0.1.1 Index]