Learn R Programming

h3r (version 0.1.2)

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

Description

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)

Value

the position of the child cell

Arguments

cell

vector of H3 cells

parentRes

integer vector specifying the parent resolution for each cell

Examples

Run this code

cellToChildPos(
  cell = c("8cbe63562a54bff","8cbe635631103ff")
  , parentRes = c(1L, 2L)
 )

Run the code above in your browser using DataLab