Skip to contents

Produces the hollow hexagonal ring centered at origin with sides of length k.

Usage

gridRingUnsafe(cell, k)

Arguments

cell

vector of H3 cells

k

side length

Value

the indices of the hollow hexagonal ring centered at origin with sides of length k.

Examples


gridRingUnsafe(cell = c("8cbe63562a54bff","85283473fffffff"), k = c(2L, 1L))
#> [[1]]
#>  [1] "8cbe63562a73dff" "8cbe63562a723ff" "8cbe63562a727ff" "8cbe63562a54dff"
#>  [5] "8cbe63562a545ff" "8cbe63562a547ff" "8cbe63562a509ff" "8cbe63562a555ff"
#>  [9] "8cbe63562a551ff" "8cbe63562a559ff" "8cbe63562a733ff" "8cbe63562a731ff"
#> 
#> [[2]]
#> [1] "8528340bfffffff" "85283447fffffff" "8528347bfffffff" "85283463fffffff"
#> [5] "85283477fffffff" "8528340ffffffff"
#>