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

res_cendist

Get average distance between H3 cell centers


Description

This function returns the average distance between the center of H3 cells at a given resolution.

Usage

res_cendist(res = NULL, units = c("m", "km"), fast = TRUE)

Arguments

res

Integer; Desired H3 resolution. See https://h3geo.org/docs/core-library/restable/ for allowable values and related dimensions.

units

Length unit to report in, either meters or kilometers.

fast

Logical; whether to retieve values from a locally stored table or reclaculate from source.

Value

Numeric; H3 cell center separation distance.

Note

This isn't in the core library but may be useful.

Examples

# Return average H3 cell separation distance at each resolution in kilometers
res_cendist(res = seq(0, 15), units = 'km')

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.