sexagesimal: To convert separated data in Degrees Minutes and Seconds to...

View source: R/Sexagesimal.R

sexagesimalR Documentation

To convert separated data in Degrees Minutes and Seconds to Decimal degrees.

Description

With this function it is possible to convert separated data in Degrees Minutes and Seconds to Decimal degrees.

Usage

sexagesimal(x, y, z, digits = 4)

Arguments

x

Value of Degree in Latitude or Longitude.

y

Value of Minute in Latitude or Longitude.

z

Value of Seconds in Latitude or Longitude.

digits

Number of digits are rounded to. DEFAULT: 4

Value

value

Examples


# Latitude
g <- -33
m <- 38
s <- 30.123456
value <- sexagesimal(g, m, s, digits = 4)
print(value)


diegoalarc/GeodesiCL documentation built on July 24, 2022, 9:14 p.m.