Replace two or more modes in the column main_mode with a new joint mode
Source:R/output_trips.R
process_rename_mainmodes.Rd
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