Skip to contents

Compacts the set cellSet of indexes as best as possible, into the array compactedSet.

Usage

compactCells(cellSet)

Arguments

cellSet

list of character vectors containing to be compacted H3 cell indexes

Value

a list of character vectors containing the compacted H3 cell indexes

Examples


compactCells(gridDisk(cell = c("8cbe63562a54bff","8cbe635631103ff"), k = c(1L, 2L)))
#> [[1]]
#> [1] "8cbe63562a54bff" "8cbe63562a549ff" "8cbe63562a541ff" "8cbe63562a543ff"
#> [5] "8cbe63562a55dff" "8cbe63562a737ff" "8cbe63562a735ff"
#> 
#> [[2]]
#>  [1] "8cbe635631139ff" "8cbe635631115ff" "8cbe63563111dff" "8cbe63563112bff"
#>  [5] "8cbe63563113dff" "8cbe635631131ff" "8cbe63563113bff" "8cbe635631117ff"
#>  [9] "8cbe635631111ff" "8cbe635631119ff" "8cbe635631157ff" "8cbe635631155ff"
#> [13] "8bbe63563110fff"
#>