gridDisk | R Documentation |
Get indices within k distance of the origin index.
gridDisk(cell, k)
cell |
vector of H3 cells |
k |
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.
the indices within k distance of the origin index
gridDisk(cell = c("8cbe63562a54bff","8cbe635631103ff"), k = c(1L, 2L))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.