powered by
This function will return the areas of all cells in the specified grid object.
surfacearea(gridObj)# S4 method for trigrid surfacearea(gridObj)# S4 method for hexagrid surfacearea(gridObj)
# S4 method for trigrid surfacearea(gridObj)
# S4 method for hexagrid surfacearea(gridObj)
(trigrid or hexagrid) Object.
trigrid
hexagrid
A named numeric vector, in the metric that was given to the function in the coordinates or the radius. "deg" will output the the distance in degrees, "rad" will do so in radians.
numeric
"deg"
"rad"
# NOT RUN { g <- trigrid(3) surfaces <- surfacearea(g) surfaces # }
Run the code above in your browser using DataLab