scanGPSTrack {SoDA} | R Documentation |
Attempts to scan a file or other connection containing GPS track information in a typical format, and to store the data in an object from class GPSTrack
.
Optional arguments define the layout of lines and the format used for date/time information
scanGPSTrack(con, fields, dateTimeFormat)
con |
A file name or open connection from which to read the data. |
fields |
An optional list for use by |
dateTimeFormat |
An optional character string format for the date and time, in the scheme used by |
Data is read from the connection by scan()
, and the date and time components are then re-read by strptime
, and a new object of class "GPSTrack"
is created from the results. The scan takes in all the lines available.
An object of GPSTrack
containing the coordinates and time as scanned.