gga_lat: G*GGA latitude

View source: R/signal_conversion.R

gga_latR Documentation

G*GGA latitude

Description

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

Usage

gga_lat(lat = NULL, dir = NULL)

Arguments

lat

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

dir

String determining whether latitude is N or S of the equator. G*GGA strings are comma-separated, NS status is in the third delimited position

Value

Numeric, latitude in decimal degrees.

Note

Inputting a numeric to lat will give incorrect results for latitude -10 < x < 10 due to loss of leading zero(s).

Examples

lat <- em38:::gga_lat('2729.10198', 'S')


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