flowcluster: Cluster Origin-Destination Flow Data

Provides functionality for clustering origin-destination (OD) pairs, representing desire lines (or flows). This includes creating distance matrices between OD pairs and passing distance matrices to a clustering algorithm. See the academic paper Tao and Thill (2016) <doi:10.1111/gean.12100> for more details on spatial clustering of flows. See the paper on delineating demand-responsive operating areas by Mahfouz et al. (2025) <doi:10.1016/j.urbmob.2025.100135> for an example of how this package can be used to cluster flows for applied transportation research.

Getting started

Package details

AuthorHussein Mahfouz [aut, cre] (ORCID: <https://orcid.org/0000-0003-1706-7802>), Robin Lovelace [aut] (ORCID: <https://orcid.org/0000-0001-5679-6536>)
MaintainerHussein Mahfouz <husseinmahfouz93@gmail.com>
LicenseMIT + file LICENSE
Version0.2.1
URL https://hussein-mahfouz.github.io/flowcluster/ https://github.com/hussein-mahfouz/flowcluster
Package repositoryView on CRAN
Installation Install the latest version of this package by entering the following in R:
install.packages("flowcluster")

Try the flowcluster package in your browser

Any scripts or data that you put into this service are public.

flowcluster documentation built on Aug. 21, 2025, 5:54 p.m.