Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

get_udedge

Get a directed edge index


Description

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

Usage

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

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.

Value

By default, character vector of directed edge indexes.

Note

The number of cell indexes supplied to origin and destination must be equal.

Examples

# Get me the directed edge representing the transition between these two cells
get_udedge(origin = '86be8d12fffffff', destination = '86be8d127ffffff')

h3jsr

Access Uber's H3 Library

v1.2.2
Apache License (>= 2)
Authors
Lauren O'Brien [aut, cre] (<https://orcid.org/0000-0002-7336-2171>)
Initial release
2021-06-16

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.