gridDiskDistances {h3r}R Documentation

Grid Disk Distances

Description

Get indices within k distance of the origin index.

Usage

gridDiskDistances(cell, k)

Arguments

cell

vector of H3 cells

k

int distance

Details

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

indices within k distance of the origin index.

Examples


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


[Package h3r version 0.1.1 Index]