Learn R Programming

h3jsr (version 1.3.1)

splitlong_to_cell: Split long to H3 cell

Description

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)

Value

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

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.

Examples

Run this code
x <- cell_to_splitlong(h3_address = '8abe8d12acaffff')

splitlong_to_cell(split_lower = x[[1]][1], split_upper = x[[1]][2])

Run the code above in your browser using DataLab