Write travel times as attributes to a grid

create_traveltime_grid(x, grid, dimname = "time")

Arguments

x

The object returned by multinet_traveltimes(), i.e. the grid table of a GTFS-Multi feed as object of class data.table with one or multiple columns containing calculated travel time values. These columns should have names that start with "travel_time".

grid

Reference grid of x as object of class stars.

dimname

If x contains multiple columns containing travel time values, they will be stored along an additional dimension. How should this dimension be called? Defaults to "time", assuming that the different columns refer to different departure times.

Value

The travel time grid as an object of class stars. This grid has the same spatial dimensions as x but contains only travel time values for each pixel.