Skip to contents

Returns the position of the child cell within an ordered list of all children of the cell's parent at the specified resolution parentRes.

Usage

cellToChildPos(cell, parentRes)

Arguments

cell

vector of H3 cells

parentRes

integer vector specifying the parent resolution for each cell

Value

the position of the child cell

Examples


cellToChildPos(
  cell = c("8cbe63562a54bff","8cbe635631103ff")
  , parentRes = c(1L, 2L)
 )
#> [1] 1267125823  137230626