process_rename_mainmodes: Replace two or more modes in the column main_mode with a new...

View source: R/output_trips.R

process_rename_mainmodesR Documentation

Replace two or more modes in the column main_mode with a new joint mode

Description

The function process_rename_mainmodes takes the tibble trips_table as input and replaces all occurrences of the specified modes in column main_mode with another name provided in united_name.

Usage

process_rename_mainmodes(
  trips_table,
  unite_modes = character(0),
  united_name = "united"
)

Arguments

trips_table

tibble of output_trips (from read_output_trips)

unite_modes

vector of character strings, changes names of chosen modes in the column main_mode to a new chosen name (i.e. drtNorth and drtSouth to drt)

united_name

character string, specifies the name of the united mode

Value

tibble with new main_mode representation


matsim-vsp/matsim-r documentation built on Feb. 3, 2025, 6:48 p.m.