res_cendist {h3jsr}R Documentation

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 retrieve values from a locally stored table or recalculate 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')


[Package h3jsr version 1.3.1 Index]