Learn R Programming

h3jsr (version 1.3.1)

get_udedge: Get a unidirectional edge index

Description

Returns an H3 index representing a unidirectional edge for a given origin and destination cell pair.

Usage

get_udedge(origin = NULL, destination = NULL, simple = TRUE)

Value

By default, character vector of unidirectional edge indexes.

Arguments

origin

Character; 15-character cell index generated by H3. A vector of indexes can also be supplied.

destination

Character; 15-character cell index generated by H3. A vector of indexes can also be supplied.

simple

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

Examples

Run this code
# Return the unidirectional edge representing the transition between these two cells:
get_udedge(origin = '86be8d12fffffff', destination = '86be8d127ffffff')

Run the code above in your browser using DataLab