Learn R Programming

tidytransit (version 0.7.3)

gtfs_as_sf: Convert stops and shapes to Simple Features#'

Description

Stops are converted to POINT sf data frames. Shapes are created as LINESTRING data frame. Note that this function replaces stops and shapes tables in gtfs_obj.

Usage

gtfs_as_sf(gtfs_obj, skip_shapes = FALSE, quiet = TRUE)

Arguments

gtfs_obj

a standard tidytransit gtfs object

skip_shapes

if TRUE, shapes are not converted. Default FALSE.

quiet

boolean whether to print status messages

Value

gtfs_obj a tidytransit gtfs object with stops and shapes as sf data frames