nmea: Create NMEA sentences

Description Usage Arguments Value Examples

View source: R/nmea.R

Description

Most NMEA sentences are valid ASCII text. Some, however, contain embedded nul characters as part of their structure and can't be represented by a character(). For most NMEA text you probably don't need this class (just read the file as lines and pass to the other functions in this package).

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
nmea(x = list())

as_nmea(x, ...)

## S3 method for class 'nmea'
as_nmea(x, ...)

## S3 method for class 'list'
as_nmea(x, ...)

## S3 method for class 'data.frame'
as_nmea(x, ..., nmea_col = "sentence")

## S3 method for class 'raw'
as_nmea(x, ...)

## S3 method for class 'character'
as_nmea(x, ...)

Arguments

x

An object to be converted to one or more NMEA sentences

...

Unused

nmea_col

A column name containing the NMEA sentence in a data.frame. Defaults to "sentence" as this is the column returned by read_nmea().

Value

A new_nmea().

Examples

1
2
3
4
5
6
7
8

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