tttr {tpm}R Documentation

Calculate TTTR Metric Score

Description

Calculate TTTR given a RITIS NPMRDS export of travel time data. Data is passed in as the path to the csv containing the travel time readings.\ Travel time units must be seconds and averaging should be 15 minutes.

Usage

tttr(travel_time_readings = NULL, monthly = FALSE, verbose = FALSE)

Arguments

travel_time_readings

path to RITIS export CSV with 15-minute average readings for trucks

monthly

TRUE or FALSE specifies if the results should be aggregated by month. If FALSE scores will be computed by TMC for all data in the input file.

verbose

Provide diagnostic output and return all calculated values (necessary for hpms function)

Value

A data.table of TTTR scores by TMC

Examples

## Not run: 
tttr("data/Trucks/Readings.csv")
tttr("data/Trucks/Readings.csv", monthly = TRUE)

## End(Not run)


[Package tpm version 2.0.2 Index]