Learn R Programming

r5r

See main README for details.

Copy Link

Version

Install

install.packages('r5r')

Monthly Downloads

983

Version

2.2.0

License

MIT + file LICENSE

Issues

Pull Requests

Stars

Forks

Maintainer

Rafael H. M. Pereira

Last Published

May 22nd, 2025

Functions in r5r (2.2.0)

expanded_travel_time_matrix

Calculate minute-by-minute travel times between origin destination pairs
assign_shortest_path

Assign shortest path
isochrone

Estimate isochrones from a given location
find_snap

Find snapped locations of input points on street network
assign_points_input

Check and convert origin and destination inputs
fileurl_from_metadata

Get most recent JAR file url from metadata
java_to_dt

Java object to data.table
expand_od_pairs

Expand origin-destination pairs
detailed_itineraries

Detailed itineraries between origin-destination pairs
download_r5

Download R5.jar
set_fare_cutoffs

Set monetary cutoffs
r5r_sitrep

Generate an r5r situation report to help debug errors
set_fare_structure

Set the fare structure used when calculating transit fares
r5r

r5r: Rapid Realistic Routing with 'R5'
read_fare_structure

Read a fare structure object from a file
r5r_cache

Manage cached files from the r5r package
pareto_frontier

Calculate travel time and monetary cost Pareto frontier
set_breakdown

Set breakdown
set_cutoffs

Set cutoffs
set_expanded_travel_times

Set expanded travel times
set_max_rides

Set max number of rides
set_max_lts

Set max Level of Transit Stress (LTS)
set_max_fare

Set max fare
set_monte_carlo_draws

Set number of Monte Carlo draws
set_n_threads

Set number of threads
set_speed

Set walk and bike speed
set_progress

Set progress argument
setup_fare_structure

Setup a fare structure to calculate the monetary costs of trips
street_network_to_sf

Extract OpenStreetMap network in sf format from a network.dat file
stop_r5

Stop running r5r core
transit_network_to_sf

Extract transit network in sf format
set_percentiles

Set percentiles
set_suboptimal_minutes

Set suboptimal minutes
set_output_dir

Set output directory
write_fare_structure

Write a fare structure object to disk
setup_r5

Create a transport network used for routing in R5
travel_time_matrix

Calculate travel time matrix between origin destination pairs
set_time_window

Set time window
set_verbose

Set verbose argument
assign_drop_geometry

Assign drop geometry
accessibility

Calculate access to opportunities
assign_decay_function

Assign decay function and parameter values
assign_departure

Check and convert POSIXct objects to strings
assign_max_street_time

Assign max street time from walk/bike distance and speed
assign_osm_link_ids

Assign osm_link_ids
assign_mode

Check and select transport modes from user input
assign_opportunities

Assign opportunities data
assign_max_trip_duration

Assign max trip duration
assert_fare_structure

Assert fare structure