Learn R Programming

r5r (version 1.1.0)

read_fare_structure: Read a fare structure object from a file

Description

Read a fare structure object from a file

Usage

read_fare_structure(file_path, encoding = "UTF-8")

Value

A fare structure object.

Arguments

file_path

A path pointing to a fare structure with a .zip extension.

encoding

A string. Passed to data.table::fread(), defaults to "UTF-8". Other possible options are "unknown" and "Latin-1". Please note that this is not used to re-encode the input, but to enable handling encoded strings in their native encoding.

See Also

Other fare structure: setup_fare_structure(), write_fare_structure()

Examples

Run this code
if (FALSE) { # identical(tolower(Sys.getenv("NOT_CRAN")), "true")
path <- system.file("extdata/poa/fares/fares_poa.zip", package = "r5r")
fare_structure <- read_fare_structure(path)
}

Run the code above in your browser using DataLab