Skip to contents

This function returns the vertex index for a supplied H3 cell and vertex number.

Usage

get_cell_vertex(h3_address = NULL, v_num = 0, simple = TRUE)

Arguments

h3_address

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

v_num

Numeric; the vertex number required. Options are 0-5 inclusive.

simple

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

Value

By default, a list of length(h3_address).

Examples

# Get vertex 3 for this cell
get_cell_vertex(h3_address = '86be8d12fffffff', 3)
#> [1] "256be8d10fffffff"