Learn R Programming

r5r (version 0.7.0)

set_speed: Set walk and bike speed

Description

This function receives the walk and bike 'speed' inputs in Km/h from routing functions above and converts them to meters per second, which is then used to set these speed profiles in r5r JAR.

Usage

set_speed(r5r_core, speed, mode)

Arguments

r5r_core

a rJava object to connect with R5 routing engine

speed

A numeric representing the speed in km/h.

mode

Either "bike" or "walk".

Value

No return value, called for side effects.

See Also

Other support functions: assert_breakdown_stat(), assert_decay_function(), assert_points_input(), check_connection(), fileurl_from_metadata(), find_snap(), posix_to_string(), select_mode(), set_max_lts(), set_max_rides(), set_max_street_time(), set_n_threads(), set_progress(), set_suboptimal_minutes(), set_verbose(), stop_r5(), street_network_to_sf(), transit_network_to_sf()