dt_to_speed_map: data.table to speedMap

View source: R/java_utils.R

dt_to_speed_mapR Documentation

data.table to speedMap

Description

Converts a data.frame with road OSM id's and respective speeds to a Java Map<Long, Float> for use by r5r_network.

Usage

dt_to_speed_map(dt)

Arguments

dt

data.frame/data.table. Table specifying the speed modifications. The table must contain columns osm_id and max_speed.

Value

A speedMap (Java HashMap<Long, Float>)

See Also

Other java support functions: dt_to_lts_map(), get_java_version(), java_to_dt()


r5r documentation built on Aug. 21, 2025, 5:44 p.m.