Learn R Programming

h3r (version 0.1.2)

uncompactCells: Uncompacts a set of compacted H3 cell indexes to a given resolution.

Description

This function uncompacts the provided set of compacted H3 cell indexes to the specified resolution.

Usage

uncompactCells(compactedSet, resolution)

Value

a list of character vectors containing the uncompacted H3 cell indexes at the specified resolution

Arguments

compactedSet

list of character vectors containing compacted H3 cell indexes

resolution

integer specifying the resolution for the uncompacted cells

Examples

Run this code

uncompactCells(
  compactCells(
    gridDisk(
      cell = c("85283477fffffff", "85283423fffffff")
      , k = c(1L, 2L)
     )
   )
   , res = c(5L, 5L)
 )

Run the code above in your browser using DataLab