extract_trips: Extract trips from scenario

Description Usage Arguments Value

View source: R/trips.R

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

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

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.

Value

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


tlumip/swimr documentation built on Dec. 14, 2020, 3:16 a.m.