Learn R Programming

h3r (version 0.1.2)

childPosToCell: Returns the child cell at a given position within an ordered list of all children of parent at the specified resolution childRes.

Description

Returns the child cell at a given position within an ordered list of all children of parent at the specified resolution childRes.

Usage

childPosToCell(childPos, cell, childRes)

Value

the position of the child cell

Arguments

childPos

the position of the child cell

cell

vector of H3 cells

childRes

integer vector specifying the child resolution for each cell

Examples

Run this code

childPosToCell(
  childPos = c(42, 41)
  , cell = c("85283473fffffff","85283473fffffff")
  , childRes = c(7L, 7L)
)

Run the code above in your browser using DataLab