Learn R Programming

GEOmap (version 2.5-11)

dms: Convert decimal degrees to degree, minutes, seconds

Description

Convert decimal degrees to degree, minutes, seconds

Usage

dms(d1)

Value

list

d

degrees

m

minutes

s

seconds

Arguments

d1

decomal degrees

Author

Jonathan M. Lees<jonathan.lees@unc.edu>

Examples

Run this code

dms(33.12345)

H = dms(-91.8765)

print(H)

newH = H$d+H$m/60+H$s/3600
print(newH)


Run the code above in your browser using DataLab