Skip to contents

The default output_trips time columns(dep_time, trav_time, wait_time) are in 'hms' format. To convert this type to numeric, specify time_column to be converted as well as the time_format. Acceptable units are "hour", "minute" and "second".

Usage

process_convert_time(
  trips_table,
  time_format = "hour",
  time_column = "dep_time"
)

Arguments

trips_table

tibble of output_trips (from read_output_trips)

time_format

character, defines time unit to be used ("hour", "minute", "second")

time_column

character, name of the column to be converted (dep_time, trav_time, wait_time)

Value

tibble, containing the converted column with specified time format