Learn R Programming

biogeo (version 1.0)

dms2dd: Converts coordinates in degrees, minutes, seconds into decimal degrees

Description

Converts coordinates in degrees, minutes, seconds into decimal degrees. These can be latitude or longitude.

Usage

dms2dd(dd, mm, ss, ns)

Arguments

dd
degrees of latitude or longitude
mm
minutes of latitude or longitude
ss
seconds of latitude or longitude
ns
letters (N,S,E,W)

Value

See Also

dd2dmslat, dd2dmslong, dmsparse, dmsabs

Examples

Run this code
dd<-c(23,45,34)
mm<-c(45,34,22)
ss<-c(2,56,10)
ns<-c("E","W","N")
dms2dd(dd,mm,ss,ns)

Run the code above in your browser using DataLab