View source: R/fare_structure.R
write_fare_structure | R Documentation |
Writes a fare structure object do disk. Fare structure is saved as a
collection of .csv
files inside a .zip
file.
write_fare_structure(fare_structure, file_path)
fare_structure |
A fare structure object, following the convention
set in |
file_path |
A path to a |
The path passed to file_path
, invisibly.
Other fare structure:
read_fare_structure()
,
setup_fare_structure()
library(r5r)
data_path <- system.file("extdata/poa", package = "r5r")
r5r_core <- setup_r5(data_path)
fare_structure <- setup_fare_structure(r5r_core, base_fare = 5)
tmpfile <- tempfile("sample_fare_structure", fileext = ".zip")
write_fare_structure(fare_structure, tmpfile)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.