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