Learn R Programming

geo (version 1.4-3)

frame2gpx: Convert latlon data frame to gpx file.

Description

Writes a gpx file of a dataframe with a call to gpsbabel in the shell

Usage

frame2gpx(data, filename = "tmp.gpx", type = "rte")

Arguments

data
Data frame with positions in columns lat and lon.
filename
Name of gpx-file, defaults to 'tmp.gpx'.
type
Type of gpx-file, one of wpt for waypoints, rte' for route or trk for track.

See Also

gpsbabel.org

Examples

Run this code
## Not run: 
# # some positions
# pos <- rPeri(323)
# frame2gpx(pos)
# system("more tmp.gpx")
# system("rm tmp.gpx")
# ## End(Not run)

Run the code above in your browser using DataLab