Manipulate and Map Origin-Destination Data
Overview
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.
- Bug fix that was causing incorrect column names (#50)
From NEWS.md in the release
Install
Health
- OK13 OK2026-08-05
- NOTE12 OK, 1 NOTE2026-08-01
- OK14 OK2026-03-10
Documentation
- Help pages
- 30
- Examples that run
- 97%28 run in a plain check · 1 never run
- Exported functions with examples
- 100%
- Documented parameters
- 98%
- Return-value docs
- 26%
- Help pages citing references
- 0%
- od HTML
Downloads
Repository
- PRs merged (all time)
- 100%
- Median days to close, 50 most recently updated closed issues
- 1
- Median days to close, 50 most recently updated closed PRs
- 0
Stars over time
Forks over time
Releases over time
Issues over time
PRs over time
16 development-tooling and community-health practices detected across 7 families in the upstream repository
Checks run against github.com/itsleeds/od on 2026-10-18.
The R CMD check workflow runs on Linux, macOS and Windows, and on R-devel
GitHub Pages site last deployed 2025-10-09 · The repository has a site deploy workflow
Show all practicesHide 3 practices
Dependencies
Installing od adds 8 packages (7 with compiled code, 4.5 MB of source tarballs). Heaviest: Rcpp 1.8 MB, vctrs 1.0 MB, rlang 766 KB.
Code & Tests
Datasets
People & History
Pick two releases to compare their code metrics.
- RR 4.6.0 released · 2026-04-24
- RR 4.5.0 released · 2025-04-11
- 0.5.1Latest
- RR 4.4.0 released · 2024-04-24
- 0.4.42024-03-10 · diff ↗
- 0.4.32023-11-15 · diff ↗
- 0.4.2
- RR 4.3.0 released · 2023-04-21
- RR 4.2.0 released · 2022-04-22
- 0.4.02022-04-18 · diff ↗
- 0.3.12021-07-11 · diff ↗
- 0.3.0
- RR 4.1.0 released · 2021-05-18
- 0.2.12021-04-22 · diff ↗
- 0.2.0
- 0.1.02021-02-10 · diff ↗ ·
removed 1 export
od_to_sf_networkadded 2 exports
od_disaggregate, od_to_network
Show 2 earlier eventsHide 2 earlier events
- 0.0.12020-09-09
- RR 4.0.0 released · 2020-04-24
Package metadata
- First published
- 2020-09-09
- Total releases
- 11 / 6 yrs
- License
- GPL-3 OSI
- Minimum R
- ≥ 3.4.0
- Bundled data
- 307 KB / 14 files
- Download size
- 1.0 MB
Cite
Cite this package
Run in R for the authors' preferred citation:
citation("od")This package has no citation file, so citation() returns this entry built from DESCRIPTION.
Cite the R Observatory
For a number measured here: a download total, a coverage figure, an archival date.
From data release v2026-10-21, which the citation names so these numbers can be found later. More on citing and the projects behind them.