gridDiskDistances: Grid Disk Distances

View source: R/traversal.R

gridDiskDistancesR 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))


h3r documentation built on April 3, 2025, 10:47 p.m.