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.
Examples
# Return average H3 cell separation distance at each resolution in kilometers
res_cendist(res = seq(0, 15), units = 'km')
#> [1] 1.918614e+03 7.251681e+02 2.740878e+02 1.035954e+02 3.915540e+01
#> [6] 1.479935e+01 5.593628e+00 2.114193e+00 7.990898e-01 3.020275e-01
#> [11] 1.141557e-01 4.314636e-02 1.630817e-02 6.165916e-03 2.335800e-03
#> [16] 8.828488e-04