nmea_date_time: NMEA utility functions

Description Usage Arguments Value Examples

View source: R/nmea-util.R

Description

Some values like datetime, longitude, and latitude, are distributed accross fields.

Usage

1
2
3
4
5
nmea_date_time(date, time)

nmea_longitude(degree_spec, hemisphere)

nmea_latitude(degree_spec, hemisphere)

Arguments

date

A Date object or NMEA datestamp (DDMMYY)

time

A hms object or NMEA time (HHMMSS)

degree_spec

A longitude/latitude as it appears in the NMEA sentence (e.g., "4916.45"). This is in the form (dddmm.mm) where there are always two minutes digits to the left of the decimal point.

hemisphere

One of "S", "N", "W", or "E".

Value

Examples

1
2
3
nmea_date_time("191194", "225446")
nmea_longitude("12311.12", "W")
nmea_latitude("4916.45", "N")

paleolimbot/nmea documentation built on April 12, 2021, 2:10 a.m.