a5_cell_area: Cell area at a given resolution

View source: R/info.R

a5_cell_areaR Documentation

Cell area at a given resolution

Description

Returns the area of a single cell in square metres at the given resolution(s). Because A5 is an equal-area DGGS, all cells at the same resolution have identical area.

Usage

a5_cell_area(resolution, units = "m^2")

Arguments

resolution

Integer vector of resolutions (0–30).

units

Character scalar specifying the output area unit (default "m^2"). Any unit convertible from m^2 via units::set_units() is accepted (e.g. "km^2", "ha", "acre"). If NULL, the area is returned as a numeric vector in m^2.

Value

A units::units vector of areas.

Examples

a5_cell_area(0:5)
a5_cell_area(5, units = "km^2")

a5R documentation built on March 26, 2026, 5:10 p.m.