View source: R/append_height.R
append_height | R Documentation |
Add a column named height to GPS data using a tif data as reference.
append_height(gps, heightfile)
gps |
A GPS data created from gtfs2gps(). |
heightfile |
The pathname of a tif file with height data. |
The GPS data with a new column named height.
## Not run:
# this example takes more than 10s to run
fortaleza <- system.file("extdata/fortaleza.zip", package = "gtfs2gps")
srtmfile <- system.file("extdata/fortaleza-srtm.tif", package = "gtfs2gps")
gtfs <- read_gtfs(fortaleza) |>
gtfstools::filter_by_shape_id("shape836-I") |>
filter_single_trip()
fortaleza_gps <- gtfs2gps(gtfs, spatial_resolution = 500) |> append_height(srtmfile)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.