Learn R Programming

vmsbase (version 2.2.1)

lonsex2dec: Sexagesimal to Decimal Longitude conversion function

Description

lonsex2dec converts sexagesimal longitude data to decimal longitude values.

Usage

lonsex2dec(degree, minute, second, direction)

Arguments

degree

The value in degrees of the longitude.

minute

The value in minutes of the longitude.

second

The value in seconds of the longitude.

direction

The direction, as "E" or "W", of the longitude.

Value

The function returns the longitude value converted in the decimal numeral system

Examples

Run this code
# NOT RUN {
lonsex2dec(degree = 10, minute = 10, second = 10, direction = "W")

# }

Run the code above in your browser using DataLab