Learn R Programming

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

stplanr (version 0.1.1)

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,315

Version

0.1.1

License

MIT + file LICENSE

Issues

Pull Requests

Stars

Forks

Maintainer

Robin Lovelace

Last Published

January 16th, 2016

Functions in stplanr (0.1.1)

calc_catchment_sum

Calculate summary statistics for catchment area.
dl_stats19

Download Stats19 data
graphhopper_pat

Retrieve personal access token.
find_network_nodes

Find graph node ID of closest node to given coordinates
gclip

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

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

Create object of class SpatialLinesNetwork from SpatialLinesDataFrame
toptail_buff

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

Function to split overlapping SpatialLines into segments
line2points

Convert a SpatialLinesDataFrame to points at the origin and destination
gtfs2sldf

Import GTFS shapes and route data to SpatialLinesDataFrame.
locate2spdf

Return SpatialPointsDataFrame with located points from OSRM locate service
read_stats19_ac

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

SpatialLinesDataFrame of commuter flows on the travel network
overline

Convert series of overlapping lines into a route network
islines

Do the intersections between two geometries create lines?
read_table_builder

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

SpatialPolygonsDataFrame of home locations for flow analysis.
read_stats19_ca

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

Convert flow data to SpatialLinesDataFrame
viaroute

Query OSRM service and return json string result
calc_moving_catchment

Calculate summary statistics for all features independently.
stplanr-package

stplanr: Sustainable Transport Planning with R
line2route

Convert straight SpatialLinesDataFrame from flow data into routes
summary,SpatialLinesNetwork-method

Print a summary of a SpatialLinesNetwork
format_stats19_ac

Format UK 'Stats19' road traffic casualty data
plot,SpatialLinesNetwork,ANY-method

Plot a SpatialLinesNetwork
bbox_scale

Scale a bounding box
writeGeoJSON

Write to geojson easily
crs_select_aeq

Select a custom projected CRS for the area of interest
buff_geo

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

data frame of commuter flows
onewaygeo

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

Get or set weight field in SpatialLinesNetwork
lineLabels

Label SpatialLinesDataFrame objects
mapshape_available

Does the computer have mapshaper available?
nearest2spdf

Return SpatialPointsDataFrame with nearest street from OSRM nearest service
decode_gl

Decode Google polyline compressed string
format_stats19_ve

Format UK 'Stats19' road traffic casualty data
routes_fast

SpatialLinesDataFrame of commuter flows on the travel network
mapshape

Simplify geometry of spatial objects with the mapshaper library
toptailgs

Clip the first and last n metres of SpatialLines
route_cyclestreet

Plan a single route with CycleStreets.net
format_stats19_ca

Format UK 'Stats19' road traffic casualty data
table2matrix

Return SpatialPointsDataFrame with nearest street from OSRM nearest service
calc_catchment

Calculate catchment area and associated summary statistics.
cents

SpatialPointsDataFrame of home locations for flow analysis.
read_stats19_ve

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

Plan a route with the graphhopper routing engine
flowlines

SpatialLinesDataFrame of commuter flows
sum_network_routes

Summarise shortest path between nodes on network
viaroute2sldf

Convert json result of OSRM routing query to SpatialLinesDataFrame
line2df

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

Retrieve personal access token.
calc_network_catchment

Calculate catchment area and associated summary statistics using network.
SpatialLinesNetwork-class

An S4 class representing a (typically) transport network
toptail

Clip the first and last n metres of SpatialLines