deg2dmm: Latitude-Longitude Conversion

View source: R/deg2dmm.R

deg2dmmR Documentation

Latitude-Longitude Conversion

Description

Converts from one latitude-longitude numeric format to another.

Usage

deg2dmm(x)

dmm2deg(x)

deg2dms(x)

dms2deg(x)

Arguments

x

Numeric vector.

Functions

  • deg2dmm(): Convert from decimal degree to degree-decimal minute format.

  • dmm2deg(): Convert from degree-decimal minute to decimal degree format.

  • deg2dms(): Convert from decimal degree to degree-minute-second format.

  • dms2deg(): Convert from degree-minute-second to decimal degree format.

See Also

loran2deg, deg2grid, deg2str

Examples

# Degree decimal-minute conversions:
deg2dmm(66.5) # Returns 6630.00
dmm2deg(6630) # Returns 66.5
dmm2deg(663000) # Returns 66.5
deg2dmm(60+5*runif(100)) # Convert 100 random coordinates to DMM format.

# Degree-minute-second conversions:
deg2dms(-66.5) # Returns -663000
dms2deg(-663000) # Returns -66.5
deg2dms(60+5*runif(100)) # Convert 100 random coordinates to DMS format.


TobieSurette/gulf.spatial documentation built on Sept. 26, 2024, 7:41 p.m.