Skip to contents

Convert a "split long" - a pair of 32-bit integers - into an H3 cell index.

Usage

splitlong_to_cell(split_lower = NULL, split_upper = NULL, simple = TRUE)

Arguments

split_lower

Integer; Lower 32 bits of an H3 index.

split_upper

Integer; Upper 32 bits of an H3 index.

simple

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

Value

Vector of H3 addresses, one for each split long pair supplied.

Examples

x <- cell_to_splitlong(h3_address = '8abe8d12acaffff')

splitlong_to_cell(split_lower = x[[1]][1], split_upper = x[[1]][2])
#> [1] "8abe8d12acaffff"