| calculate_vkt | R Documentation |
Calculate the vehicle-kilometres travelled by groups of trips
calculate_vkt(gtfs, trips, date, window, lengths = NULL)
gtfs |
A GTFS object, as created by |
trips |
A |
date |
A |
window |
An integer vector with the start and end of the time of day,
in seconds after midnight, as returned by |
lengths |
A |
A data.table with the columns group, n_days, vkt and
vkt_daily_mean, as described in get_vkt(), with one row for each
group in trips, in their order. Groups without any counted departure
have n_days 0 and NA vkt.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.