edge_length: Get exact cell edge length

View source: R/info_utilities.R

edge_lengthR Documentation

Get exact cell edge length

Description

This function calculates the exact length of an H3 cell edge.

Usage

edge_length(h3_edge = NULL, units = c("m", "km", "rads"), simple = TRUE)

Arguments

h3_edge

Character; address of unidirectional edge.

units

Length unit to report in. Options are meters, kilometers, or radians.

simple

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

Value

By default, a numeric vector of length(h3_address).

Examples

edge_length(h3_edge = '166be8d12fffffff', 'm')

obrl-soil/h3jsr documentation built on Jan. 27, 2024, 4:33 a.m.