Learn R Programming

r5r (version 0.7.0)

set_suboptimal_minutes: Set suboptimal minutes

Description

Set suboptimalMinutes parameter in R5.

Usage

set_suboptimal_minutes(r5r_core, suboptimal_minutes)

Arguments

r5r_core

rJava object to connect with R5 routing engine

suboptimal_minutes

numeric. The number of suboptimal minutes in a public transport point-to-point query. From R5's documentation: This parameter compensates for the fact that GTFS does not contain information about schedule deviation (lateness). The min-max travel time range for some trains is zero, since the trips are reported to always have the same timings in the schedule. Such an option does not overlap (temporally) its alternatives, and is too easily eliminated by an alternative that is only marginally better. We want to effectively push the max travel time of alternatives out a bit to account for the fact that they don't always run on schedule.

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_speed(), set_verbose(), stop_r5(), street_network_to_sf(), transit_network_to_sf()