Learn R Programming

icosa (version 0.12.0)

surfacearea: Areas of grid cell surfaces

Description

This function will return the areas of all cells in the specified grid object.

Usage

surfacearea(x)

# S4 method for trigrid surfacearea(x)

# S4 method for hexagrid surfacearea(x)

Value

A named numeric vector, in the metric that was given to the function in the coordinates or the radius of the grid. Default grid configurations yield values in square kilometers.

Arguments

x

(trigrid or hexagrid) Object.

Examples

Run this code
g <- trigrid(3)
surfaces <- surfacearea(g)
surfaces

Run the code above in your browser using DataLab