gga_long: G*GGA longitude

View source: R/signal_conversion.R

gga_longR Documentation

G*GGA longitude

Description

This function retrieves longitude position information from a G*GGA string.

Usage

gga_long(long = NULL, dir = NULL)

Arguments

long

String containing longitude information. G*GGA strings are comma-separated, longitude is in the fourth delimited position

dir

String determining whether longitude is E or W of 0 degrees. GPGGA strings are comma-separated, EW status is in the fifth delimited position

Value

Numeric, longitude in decimal degrees.

Note

Inputting a numeric to long will give incorrect results for longitude -100 < x < 100 due to loss of leading zero(s).

Examples

lat <- em38:::gga_long('15257.5556', 'E')


obrl-soil/em38 documentation built on Sept. 25, 2023, 10:01 p.m.