Function File: earthRadius (unit)

Converts the Earth’s radius into other units.

Input argument units can be one of the units of validateLengthUnit. The default is meters.

earthRadius ('km')
=> ans = 6371

See also: validateLengthUnit,unitsratio.

Package: mapping