Learn R Programming

GeodesiCL (version 1.0.0)

sexagesimal: 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 the seconds are rounded to. DEFAULT: 4

Value

value

Examples

Run this code
# NOT RUN {
# Latitude
g <- -33
m <- 38
s <- 30.123456
value <- sexagesimal(g, m, s, digits = 4)
print(value)
# }

Run the code above in your browser using DataLab