reduce_to_percentiles.RdReduce multiple travel times to a set of percentile values
Object to reduce. May be a travel time grid as object of class
stars created by create_traveltime_grid() and
having multiple travel time values per spatial location stored along a third
dimension. May also be an object of class
data.table created by multinet_traveltimes()
and having multiple travel time columns with names starting with
"travel_time".
Percentile values that should be calculated.
In case x is a travel time grid: the updated travel time grid as
object of class stars, with the third dimension
now having one coordinate per calculated percentile value. The original
third dimension is removed.
In case x is a data table: the updated table having one travel time column
per calculated percentile, all named "travel_time_p" followed by the
corresponding percentile value. The original travel time columns are
removed.