Learn R Programming

⚠️There's a newer version (1.2.3) of this package.Take me there.

stplanr (version 0.1.0)

Sustainable Transport Planning

Description

Functionality and data access tools for transport planning, including origin-destination analysis, route allocation and modelling travel patterns.

Copy Link

Version

Install

install.packages('stplanr')

Monthly Downloads

1,388

Version

0.1.0

License

MIT + file LICENSE

Issues

Pull Requests

Stars

Forks

Maintainer

Robin Lovelace

Last Published

January 15th, 2016

Functions in stplanr (0.1.0)

islines

Do the intersections between two geometries create lines?
mapshape

Simplify geometry of spatial objects with the mapshaper library
od2line

Convert flow data to SpatialLinesDataFrame
nearest2spdf

Return SpatialPointsDataFrame with nearest street from OSRM nearest service
route_cyclestreet

Plan a single route with CycleStreets.net
stplanr-package

stplanr: Sustainable Transport Planning with R
viaroute

Query OSRM service and return json string result
read_table_builder

Import and format Australian Bureau of Statistics (ABS) TableBuilder files
format_stats19_ac

Format UK 'Stats19' road traffic casualty data
onewaygeo

Aggregate flows so they become non-directional (by geometry - the slow way)
read_stats19_ac

Import and format UK 'Stats19' road traffic casualty data
graphhopper_pat

Retrieve personal access token.
bbox_scale

Scale a bounding box
zones

SpatialPolygonsDataFrame of home locations for flow analysis.
buff_geo

Create a buffer of n metres for non-projected 'geographical' spatial data
calc_catchment_sum

Calculate summary statistics for catchment area.
flowlines

SpatialLinesDataFrame of commuter flows
gsection

Function to split overlapping SpatialLines into segments
format_stats19_ve

Format UK 'Stats19' road traffic casualty data
line2points

Convert a SpatialLinesDataFrame to points at the origin and destination
SpatialLinesNetwork

Create object of class SpatialLinesNetwork from SpatialLinesDataFrame
calc_catchment

Calculate catchment area and associated summary statistics.
gclip

Crops spatial object x to the bounding box of spatial object (or matrix) b
lineLabels

Label SpatialLinesDataFrame objects
line2route

Convert straight SpatialLinesDataFrame from flow data into routes
read_stats19_ve

Import and format UK 'Stats19' road traffic casualty data
cyclestreet_pat

Retrieve personal access token.
SpatialLinesNetwork-class

An S4 class representing a (typically) transport network
flow

data frame of commuter flows
gtfs2sldf

Import GTFS shapes and route data to SpatialLinesDataFrame.
overline

Convert series of overlapping lines into a route network
toptail_buff

Clip the beginning and ends SpatialLines to the edge of SpatialPolygon borders
weightfield

Get or set weight field in SpatialLinesNetwork
dl_stats19

Download Stats19 data
mapshape_available

Does the computer have mapshaper available?
plot,SpatialLinesNetwork,ANY-method

Plot a SpatialLinesNetwork
onewayid

Aggregate flows so they become non-directional (by id - the faster way)
decode_gl

Decode Google polyline compressed string
calc_moving_catchment

Calculate summary statistics for all features independently.
calc_network_catchment

Calculate catchment area and associated summary statistics using network.
locate2spdf

Return SpatialPointsDataFrame with located points from OSRM locate service
crs_select_aeq

Select a custom projected CRS for the area of interest
route_graphhopper

Plan a route with the graphhopper routing engine
summary,SpatialLinesNetwork-method

Print a summary of a SpatialLinesNetwork
sum_network_routes

Summarise shortest path between nodes on network
routes_slow

SpatialLinesDataFrame of commuter flows on the travel network
writeGeoJSON

Write to geojson easily
table2matrix

Return SpatialPointsDataFrame with nearest street from OSRM nearest service
viaroute2sldf

Convert json result of OSRM routing query to SpatialLinesDataFrame
format_stats19_ca

Format UK 'Stats19' road traffic casualty data
line2df

Convert straight SpatialLinesDataFrame to a data.frame with from and to coords
toptailgs

Clip the first and last n metres of SpatialLines
cents

SpatialPointsDataFrame of home locations for flow analysis.
find_network_nodes

Find graph node ID of closest node to given coordinates
read_stats19_ca

Import and format UK 'Stats19' road traffic casualty data
routes_fast

SpatialLinesDataFrame of commuter flows on the travel network
toptail

Clip the first and last n metres of SpatialLines