Package: od 0.5.1

Robin Lovelace

od: Manipulate and Map Origin-Destination Data

The aim of 'od' is to provide tools and example datasets for working with origin-destination ('OD') datasets of the type used to describe aggregate urban mobility patterns (Carey et al. 1981) <doi:10.1287/trsc.15.1.32>. The package builds on functions for working with 'OD' data in the package 'stplanr', (Lovelace and Ellison 2018) <doi:10.32614/RJ-2018-053> with a focus on computational efficiency and support for the 'sf' class system (Pebesma 2018) <doi:10.32614/RJ-2018-009>. With few dependencies and a simple class system based on data frames, the package is intended to facilitate efficient analysis of 'OD' datasets and to provide a place for developing new functions. The package enables the creation and analysis of geographic entities representing large scale mobility patterns, from daily travel between zones in cities to migration between countries.

Authors:Robin Lovelace [aut, cre], Malcolm Morgan [aut], David Cooley [ctb]

od_0.5.1.tar.gz
od_0.5.1.zip(r-4.5)od_0.5.1.zip(r-4.4)od_0.5.1.zip(r-4.3)
od_0.5.1.tgz(r-4.4-any)od_0.5.1.tgz(r-4.3-any)
od_0.5.1.tar.gz(r-4.5-noble)od_0.5.1.tar.gz(r-4.4-noble)
od_0.5.1.tgz(r-4.4-emscripten)od_0.5.1.tgz(r-4.3-emscripten)
od.pdf |od.html
od/json (API)
NEWS

# Install 'od' in R:
install.packages('od', repos = c('https://itsleeds.r-universe.dev', 'https://cloud.r-project.org'))

Peer review:

Bug tracker:https://github.com/itsleeds/od/issues

Datasets:

On CRAN:

8.54 score 33 stars 5 packages 81 scripts 1.5k downloads 26 exports 8 dependencies

Last updated 11 days agofrom:5d3f93a0d9. Checks:OK: 7. Indexed: yes.

TargetResultDate
Doc / VignettesOKOct 07 2024
R-4.5-winOKOct 07 2024
R-4.5-linuxOKOct 07 2024
R-4.4-winOKOct 07 2024
R-4.4-macOKOct 07 2024
R-4.3-winOKOct 07 2024
R-4.3-macOKOct 07 2024

Exports:coords_to_odod_aggregateod_coordinatesod_coordinates_idsod_disaggregateod_filterod_groupod_id_characterod_id_max_minod_id_orderod_id_szudzikod_interzoneod_intrazoneod_jitterod_onewayod_splitod_to_networkod_to_odmatrixod_to_sfod_to_sfcodc_to_sfodc_to_sfcodmatrix_to_odpoints_to_odpoints_to_odlsfc_point_to_matrix

Dependencies:cligeometriesgluelifecycleRcpprlangsfheadersvctrs

An introduction to origin-destination data

Rendered fromod.Rmdusingknitr::rmarkdownon Oct 07 2024.

Last update: 2023-09-30
Started: 2020-04-10

Readme and manuals

Help Manual

Help pageTopics
Convert coordinates into a data frame of origins and destinationscoords_to_od
Aggregate od pairs based on aggregating zonesod_aggregate od_group
Create matrices representing origin-destination coordinatesod_coordinates
Interleave origin and destination coordinatesod_coordinates_ids
Simple buildings datasetod_data_buildings
Datasets reporesenting zone centroidsod_data_centroids od_data_coordinates
Output area centroidsod_data_centroids2
Workplace zone (destination) centroidsod_data_destinations
Origin-destination datasetsod_data_df od_data_df_medium
Origin-destination data with destinations in a different layer than originsod_data_df2
Route network data for Leedsod_data_network
Example OD dataod_data_csa_zones od_data_zones od_data_zones_min
Small zones datasetod_data_zones_small
Split-up each OD pair into multiple OD pairs based on subpoints/subzonesod_disaggregate od_split
Filter OD datasetsod_filter
Combine two ID values to create a single ID numberod_id od_id_character od_id_max_min od_id_szudzik
Generate ordered ids of OD pairs so lowest is always first This function is slow on large datasets, see szudzik_pairing for faster alternativeod_id_order
Return only interzonal (io intrazonal) OD pairsod_interzone od_intrazone
Move desire line end points within zone to avoid all trips going to a single centroidod_jitter
Aggregate OD pairs they become non-directionalod_oneway
Simple road network datasetod_road_network
Create a subsample of points from a route network for jitteringod_sample_vertices
Convert OD data into lines with start and end points sampled on a networkod_to_network
Convert origin-destination data from long to wide formatod_to_odmatrix
Convert OD data into geographic 'desire line' objectsod_to_sf od_to_sfc
Convert origin-destination coordinates into geographic desire linesodc_to_sf
Convert origin-destination coordinates into geographic desire linesodc_to_sfc
Convert origin-destination data from wide to long formatodmatrix_to_od
Convert a series of points into a dataframe of origins and destinationspoints_to_od points_to_odl
Extract coordinates from sfc objects with point geometrysfc_point_to_matrix