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.

Version: 0.2.1
Depends: R (≥ 4.1.0)
Imports: sf, dbscan, dplyr, glue, lwgeom, purrr, rlang, tibble, units, tidyr, tidyselect
Suggests: testthat (≥ 3.0.0), tmap
Published: 2025-08-21
Author: Hussein Mahfouz ORCID iD [aut, cre], Robin Lovelace ORCID iD [aut]
Maintainer: Hussein Mahfouz <husseinmahfouz93 at gmail.com>
License: MIT + file LICENSE
URL: https://hussein-mahfouz.github.io/flowcluster/, https://github.com/hussein-mahfouz/flowcluster
NeedsCompilation: no
Materials: README, NEWS
CRAN checks: flowcluster results

Documentation:

Reference manual: flowcluster.html , flowcluster.pdf

Downloads:

Package source: flowcluster_0.2.1.tar.gz
Windows binaries: r-devel: flowcluster_0.1.0.zip, r-release: flowcluster_0.1.0.zip, r-oldrel: flowcluster_0.1.0.zip
macOS binaries: r-release (arm64): flowcluster_0.1.0.tgz, r-oldrel (arm64): flowcluster_0.1.0.tgz, r-release (x86_64): flowcluster_0.1.0.tgz, r-oldrel (x86_64): flowcluster_0.1.0.tgz
Old sources: flowcluster archive

Linking:

Please use the canonical form https://CRAN.R-project.org/package=flowcluster to link to this page.