R: Convert decimal degrees to degree, minutes, seconds

dms {GEOmap} | R Documentation

## Convert decimal degrees to degree, minutes, seconds

### Description

Convert decimal degrees to degree, minutes, seconds

### Usage

    dms(d1)

### Arguments

`d1` | decomal degrees

### Value

list

`d` | degrees
`m` | minutes
`s` | seconds

### Author(s)

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

### Examples

    dms(33.12345)

    H = dms(-91.8765)

    print(H)

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

[Package GEOmap version 2.4-0 Index]