Learn R Programming

h3jsr (version 1.3.1)

childpos_to_cell: Child position to cell

Description

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

Usage

childpos_to_cell(
  child_pos = NULL,
  h3_address = NULL,
  child_res = NULL,
  simple = TRUE
)

Value

Character, H3 address of child

Arguments

child_pos

numeric; position of the child cell to get.

h3_address

Character; 15-character index generated by H3.

child_res

numeric; resolution of the child cell to return.

simple

Logical; whether to return a vector or a data frame containing both inputs and outputs.

Examples

Run this code
# example address has resolution 7:
childpos_to_cell(0, '872830b82ffffff', 9, simple = FALSE)

Run the code above in your browser using DataLab