Learn R Programming

gtfsio (version 1.1.1)

print.gtfs: Print a GTFS object

Description

Prints a GTFS object suppressing the class attribute.

Usage

# S3 method for gtfs
print(x, ...)

Value

The GTFS object that was printed, invisibly.

Arguments

x

A GTFS object.

...

Optional arguments ultimately passed to format.

Examples

Run this code
gtfs_path <- system.file("extdata/ggl_gtfs.zip", package = "gtfsio")
gtfs <- import_gtfs(gtfs_path)

# subset 'gtfs' for a smaller output
gtfs <- gtfs[c("routes", "trips")]

print(gtfs)

Run the code above in your browser using DataLab