Skip to contents

Converts degrees, minutes and seconds to decimal degrees.

Usage

dms2decdegrees(input = NULL)

dms2decdegrees_2(input = NULL)

Arguments

input

A character string containing DMS coordinates.

Value

A numeric value.

Note

Code for dms2decdegrees() was modified from the project at https://github.com/SevillaR/aemet.

Examples

dms2decdegrees("055245W")
#> [1] -5.879167
dms2decdegrees_2("-3º 40' 37\"")
#> [1] -3.676944