Returns the average length of a cell edge at the given resolution(s).
Individual edge lengths vary from this average by roughly +/-10%,
depending on the cell's shape and its position on the globe. Use this
for a quick estimate of cell size when choosing a resolution; use
a5_cell_to_boundary() to measure a specific cell.
Arguments
- resolution
Integer vector of resolutions (0–30).
- units
Character scalar specifying the output length unit (default
"m"). Any unit convertible frommviaunits::set_units()is accepted (e.g."km","mi"). If NULL, the length is returned as a numeric vector in metres.
Value
A units::units vector of average edge lengths, or a numeric
vector if units = NULL.
