powered by
Get indices within k distance of the origin index.
gridDiskDistances(cell, k)
indices within k distance of the origin index.
vector of H3 cells
int distance
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.
gridDiskDistances(cell = c("8cbe63562a54bff","8cbe635631103ff") , k = c(1L, 2L))
Run the code above in your browser using DataLab