Learn R Programming

sampSurf (version 0.7-6)

area: Area of objects in package sampSurf

Description

A number of the different classes of objects in sampSurf have some kind of areal representation, often just part of the class definition as one of the slots. This function simply returns the area as stored within the object as given in area-methods.

Arguments

Value

Area in the correct units.

Details

The area that is stored and returned is in the native units of the object. In most cases, this will be either square feet or square meters. The area-methods provide individual detail, as do the individual class definitions for the objects passed.

See Also

area-methods

Examples

Run this code
# NOT RUN {
tract = Tract(c(x=20,y=35),cellSize=0.25, units='metric')
area(tract)/.StemEnv$smpHectare  #in hectares
# }

Run the code above in your browser using DataLab