Learn R Programming

geo (version 1.4-3)

rectArea: Given rectangle code return area in square kilometers or nautical miles

Description

Rectangle area is returned through a call to rectPeri-functions and geoarea.

Usage

rA(r, scale = "nmi")
srA(sr, scale = "nmi")
mrA(mr, dlat = 5, dlon = 10, scale = "nmi")
drA(dr, dlat = 1, dlon = 2, scale = "km")

Arguments

r,sr,mr,dr
rectangle code, as in rect2deg and deg2rect.
scale
nmi, km, default nmi returns values in square nautical miles for all except drA returns area in square kilometers.
dlat,dlon
Dimensions of latitude and longitude given in minutes and degrees for mrPeri and drPeri, respectively.

Value

Rectangle area in square nautical miles or kilometers.

See Also

rectPeri, deg2rect, geoarea.

Examples

Run this code
srA(7121)
  srA(7121, "km")
  srA(7121, "km")/1.852^2
  srA(7121, "km")
  rA(712)
  srA(7121) + srA(7122) + srA(7123) + srA(7124)

Run the code above in your browser using DataLab