Learn R Programming

GeodesiCL (version 1.0.0)

M: To calculate the value of M.

Description

To calculate the value for the function of M.

Usage

M(x, y, digits = 4)

Arguments

x

Selection of Ellipsoid.

y

Latitude in radians.

digits

Number of digits the seconds are rounded to. DEFAULT: 4

Value

value

References

https://github.com/OSGeo/PROJ & https://github.com/cran/rgdal

Examples

Run this code
# NOT RUN {
# Latitude
g <- -33
m <- 38
s <- 30.123456

rad_lat <- radians(g, m, s)
print(rad_lat)

# To know the ellipsoids and the order open the Ellipsoids in the package and look for it number
Ellip <- Ellipsoids
#View(Ellip)

# We choose the number 5 which is GRS80
value <- M(5, rad_lat, digits = 4)
print(value)
# }

Run the code above in your browser using DataLab