extract_trips: Extract trips from scenario

View source: R/trips.R

extract_tripsR Documentation

Extract trips from scenario

Description

This function looks at the trip matrix for a scenario and dplyr::summarizes trips on the origin end by mode and region of origin.

Usage

extract_trips(
  db,
  facet_var = NULL,
  facet_levels = NULL,
  color_levels = c("auto", "transit", "non-motorized", "truck"),
  index = FALSE,
  index_year = 2000
)

Arguments

db

the scenario database.

facet_var

The region to dplyr::summarize by.

facet_levels

Regions to include in summary.

color_levels

Modes to include in summary. Defaults to all modes other than school. See consolidated modes in mode_types.

index

whether to index mode split off the base year.

index_year

[Optional] index year that should be used as the starting year for data or plots;

Value

A data frame with total trips originating in the region by mode and year.


pbsag/swimr documentation built on July 4, 2025, 12:10 p.m.