This function returns the average area of an H3 cell at a given resolution.
Usage
res_area(res = NULL, units = c("m2", "km2"), fast = TRUE)
Arguments
- res
Integer; Desired H3 resolution. See https://h3geo.org/docs/core-library/restable/ for allowable values and related dimensions.
- units
Areal unit to report in. Options are square meters or square kilometers.
- fast
Logical; whether to retrieve values from a locally stored table or reclaculate from source.
Examples
# Return average H3 cell area at each resolution in square meters
res_area(res = seq(0, 15), units = 'm2')
#> [1] 4.357449e+12 6.097884e+11 8.680178e+10 1.239343e+10 1.770348e+09
#> [6] 2.529039e+08 3.612906e+07 5.161293e+06 7.373276e+05 1.053325e+05
#> [11] 1.504750e+04 2.149643e+03 3.070919e+02 4.387027e+01 6.267181e+00
#> [16] 8.953116e-01