Learn R Programming

geo (version 1.4-3)

geoarea: Calculates the area of a given region.

Description

Calculates the area of a given region to a given precision.

Usage

geoarea(data, Projection = "Lambert", old.method = F, ngrdpts = 2000, robust = T)

Arguments

data
The region, should contain \$lat and \$lon.
Projection
Which projection is beeing used.
old.method
If true an older version of this program is used. Default is False.
ngrdpts
The precision of the calculation.
robust
If true a more robust method is used, default is True.

Value

The area of the region given.

Side Effects

None

See Also

geodefine, geolocator, geoinside.

Examples

Run this code
geoarea(island)         # Calculates the area of Iceland up to
                                 # an with default precision.

         geoarea(island,10000)   # Calculates the area of Iceland up to
                                 # an adiquite precision.

#         geoarea(geodefine(),10) # Calculates the area of a region specified
                                 # by the user.

Run the code above in your browser using DataLab