Skip to contents

Get an H3 cell index representing the origin of a directed edge.

Usage

get_udorigin(h3_edge = NULL, simple = TRUE)

Arguments

h3_edge

Character; address of unidirectional edge.

simple

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

Value

By default, character vector of H3 indexes.

Examples

# Get the origin cell of this directed edge
get_udorigin(h3_edge = '166be8d12fffffff')
#> [1] "86be8d12fffffff"