hex_info: Get Hexagons Information

Description Usage Arguments Examples

Description

Average hexagon area, or edge length at a given resolution.

The total count of hexagons in the world at a given resolution. Note that above resolution 8 the exact count cannot be represented in a JavaScript 32-bit number, so consumers should use caution when applying further operations to the output.

Usage

1
2
3
4
5
h3_area(resolution = 4L, unit = c("m2", "km2"))

h3_edge_length(resolution = 4L, unit = c("m", "km"))

h3_num_hexagons(resolution = 4L)

Arguments

resolution

Hexagon resolution.

unit

Metric, either meters (m2) or kilometers (/codekm, km2).

Examples

1
2
3
4
h3_area(7, "km2")
h3_edge_length(7, "km")

h3_num_hexagons(2)

JohnCoene/h3inr documentation built on Oct. 30, 2019, 7:57 p.m.