extract_vmt: Extract VMT

View source: R/vmt.R

extract_vmtR Documentation

Extract VMT

Description

Extract VMT

Usage

extract_vmt(
  db,
  facet_var = "MPO",
  facet_levels = NULL,
  index = FALSE,
  index_year = 2000
)

Arguments

db

The scenario database.

facet_var

The variable to use in facetting the data.

facet_levels

A character vector giving the levels of the facet variable to use. Levels not called are dropped from the plot; default is NULL, meaning print all levels.

index

Whether to show the variables as indexed against 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 VMT dplyr::summarized by facility type and facet variable.


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