Converts a time column to a numeric representation of minutes, hours or seconds
Source:R/output_trips.R
process_convert_time.Rd
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".
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)