`compact_cells.Rd`

Reduce a set of H3 indices of the same resolution to the minimum number of H3 indices of varying resolution that entirely covers the input area.

```
compact_cells(x)
uncompact_cells(x, resolution)
```

- x
a vector of H3 indexes.

- resolution
a scalar integer representing the grid resolution in the range [0, 15].

```
x <- h3_from_strings("841f91dffffffff")
y <- uncompact_cells(x, 5)[[1]]
z <- compact_cells(y)
all.equal(x, z)
#> [1] TRUE
```